summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1407ae63d018213adca59343e5d30aa8004af90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=backdup
pkgver=0.1
pkgrel=1
pkgdesc="Duplicity front-end"
arch=('any')
url="https://sourceforge.net/projects/backdup/"
license=('GPL3')
depends=('java-runtime' 'duplicity')
source=(http://sourceforge.net/projects/$pkgname/files/$pkgname.tar.bz2
        $pkgname.desktop)
sha256sums=('0462e1f64c85be6f05bb419895506edcb609ea7d85dd52db2a44f3616e6dca04'
            '362a5275cea56b036969a5da70c729b1723b950744de4826ec990dcce2b27fb8')

package() {
  cd "${srcdir}"

  install  -Dm644 $pkgname.jar "${pkgdir}"/usr/share/java/$pkgname/$pkgname.jar

#.desktop file + icon
  install -D -m644 "${srcdir}"/$pkgname.desktop \
    "${pkgdir}"/usr/share/applications/$pkgname.desktop
  install -D -m644 "${srcdir}"/$pkgname.png \
    "${pkgdir}"/usr/share/pixmaps/$pkgname.png

#executable file
  install -d "${pkgdir}"/usr/bin
  echo "#!/bin/bash" > "${pkgdir}"/usr/bin/$pkgname
  echo "java -jar /usr/share/java/backdup/backdup.jar" >> "${pkgdir}"/usr/bin/$pkgname
  chmod +x "${pkgdir}"/usr/bin/$pkgname
}