updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / boxbackup-client / PKGBUILD
blobb6d41c2188fa4da00c3dcab8dab4405dbfd765c5
1 # Contributor: Andreas Schrafl <aschrafl@jetnet.ch>
2 # based on the work of Jaroslav Lichtblau <tu@dragonlord.cz>
3 # based on the work of KyAnh, http://kyanh.net/ <xkyanh@gmail.com>
5 pkgname=boxbackup-client
6 pkgver=0.11.1
7 pkgrel=0
8 pkgdesc="An open source, completely automatic on-line backup system for UNIX."
9 arch=('i686' 'x86_64')
10 url="http://boxbackup.org"
11 license=('BSD')
12 depends=('openssl' 'perl' 'zlib')
13 backup=('etc/boxbackup/bbstored.conf')
14 source=(http://boxbackup.org/svn/box/packages/boxbackup-$pkgver.tgz bbclient)
16 md5sums=('c4c4786a918a9c026f80833614c40a6b'
17          '7b8f75b84d277f21923d4e1a6a050105')
19 build() {
20         export MAKEFLAGS="-j1"
21         cd ${srcdir}/boxbackup-${pkgver}
23         ./configure
25         mkdir -p ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu
27         make release/bin/bbackupd/bbackupd
28         make release/bin/bbackupd/bbackupd
29         cp ${srcdir}/boxbackup-${pkgver}/release/bin/bbackupd/bbackupd ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupd
31         make release/bin/bbackupquery/bbackupquery
32         cp ${srcdir}/boxbackup-${pkgver}/release/bin/bbackupquery/bbackupquery ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupquery
34         make release/bin/bbackupctl/bbackupctl
35         cp ${srcdir}/boxbackup-${pkgver}/release/bin/bbackupctl/bbackupctl ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupctl
37         cp ${srcdir}/boxbackup-${pkgver}/bin/bbackupd/bbackupd-config ${srcdir}/boxbackup-${pkgver}/parcels/boxbackup-${pkgver}-backup-client-linux-gnu/bbackupd-config
39   for f in \
40     bbackupd \
41     bbackupquery \
42     bbackupctl \
43     bbackupd-config ;\
44   do
45       install -D -m755 \
46         ${srcdir}/boxbackup-$pkgver/parcels/boxbackup-$pkgver-backup-client-linux-gnu/$f \
47         ${pkgdir}/usr/bin/$f
48   done
50   install -D -m755 "${srcdir}/bbclient" "${pkgdir}/etc/rc.d/bbclient"