updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / areca / PKGBUILD
blob4034d9eed82046e3db94cb558a19359f7fdf73af
1 #Contributor: Philipp Schwarz <fi-dschi_archlinux - at - arcor - dot - de>
2 # SanskritFritz (gmail)
4 pkgname=areca
5 pkgver=7.2.4
6 pkgrel=4
7 pkgdesc="Easy-to-use personal file backup software supporting compression, encryption and incremental backups"
8 arch=('i686' 'x86_64')
9 license=('GPL2')
10 depends=('java-runtime')
11 #makedepends=('')
12 url=('http://areca.sf.net')
13 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-linux-gtk-32.tar.gz"
14         "areca.sh"
15         "areca_cl.sh"
16         "areca_decrypt.sh"
17         "areca_dezip.sh"
18         "areca.desktop")
19 md5sums=('ca63a8189701058af8fd366c0d08faf6'
20          '024e3fe74c518a9dee889f3ea1ff9f71'
21          '662d65e44fe0806cff69850dae55f107'
22          '8e0088445454ab80a9f04c84b3363814'
23          '2f1bd15c94600065c43366f440cc0c37'
24          '5e978edc20d715cefec098e3e77a3721')
25 # for 64bit
26 [ "$CARCH" = "x86_64" ] && source[0]="http://downloads.sourceforge.net/project/areca/areca-stable/areca-${pkgver}/areca-${pkgver}-linux-gtk-64.tar.gz"
27 [ "$CARCH" = "x86_64" ] && md5sums[0]='af9e77cd774a1fd07a9ad374b2cd2c04'
30 build() {
31         mkdir -p "${pkgdir}/opt/" || return 1
32         cp -r  "${srcdir}/${pkgname}"  "${pkgdir}/opt/" || return 1
34 #       chmod 755 ${pkgdir}/opt/areca/bin/*
37         # copy start scripts to /usr/bin for they then will be in $PATH
38         # these contain the full fixed path of /opt/areca/bin/areca_run.sh
39         for _script in "areca" "areca_cl" "areca_decrypt" "areca_dezip"
40         do
41                 install -D "${startdir}/${_script}.sh" "${pkgdir}/usr/bin/${_script}" || return 1
42         done
44         # symlink menu icon
45         mkdir -p "${pkgdir}/usr/share/pixmaps"
46         ln -s "/opt/areca/icons/ico_72.png" "${pkgdir}/usr/share/pixmaps/areca_72x72.png" || return 1
48         # copy .desktop file (menu entry)
49         install -D "${startdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" || return 1
50