# Contributor: Henrik Riomar # Maintainer: Henrik Riomar pkgname=safekeep pkgver=1.4.5 pkgrel=0 pkgdesc="SafeKeep backup system" url="https://github.com/dimipaun/safekeep" arch="noarch" license="GPL-2.0" depends="openssh-client python2 rdiff-backup util-linux" makedepends="asciidoc libxml2-utils xmlto" install="$pkgname-server.post-install" subpackages="$pkgname-doc $pkgname-client $pkgname-server" source="$pkgname-$pkgver.tar.gz::https://github.com/dimipaun/$pkgname/archive/$pkgver.tar.gz " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" make man # ionice from util-linux is in /usr/bin (busybox in /bin) sed -i 's|PATH=/sbin:/bin:/usr/sbin:/usr/bin|PATH=/sbin:/usr/sbin:/usr/bin:/bin|' safekeep.cron } check() { cd "$builddir" PATH="$PATH:." make check } client() { pkgdesc="SafeKeep backup system - client" depends="$pkgname" mkdir -p "$subpkgdir" # just a meta package } server() { pkgdesc="SafeKeep backup system - server" depends="$pkgname" mkdir -p "$subpkgdir" mv "$pkgdir"/etc "$subpkgdir"/etc mkdir "$subpkgdir"/etc/periodic mv "$subpkgdir"/etc/cron.daily "$subpkgdir"/etc/periodic/daily } package() { cd "$builddir" make install DESTDIR="$pkgdir" } sha512sums="d3e69967798035c4f212777069b802d479d9613803a1a68495e761d972ffe2a1b4fdc51da0510e0ebceaf6fbb430305f97ffce8cab5330a4ecbdf68714a35054 safekeep-1.4.5.tar.gz"