diff options
author | Ben | 2016-09-10 12:10:42 +0200 |
---|---|---|
committer | Ben | 2016-09-10 12:10:42 +0200 |
commit | d6b4ab951925f1ceccaeb8e1edf3f1d374c5e162 (patch) | |
tree | aa15388559b7691ef1ad84fc73ccb3e89ec6f6b8 /PKGBUILD | |
download | aur-d6b4ab951925f1ceccaeb8e1edf3f1d374c5e162.tar.gz |
first release, tracking the head of a branch featuring borg support and up to date with upstream/master
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4a7c3f722b24 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +_pkgname=backupninja +pkgname=$_pkgname-borg-git +pkgver=1.0.2 +pkgrel=1 +pkgdesc="A centralized way to configure and schedule many different backup utilities" +arch=('any') +url="https://0xacab.org/riseuplabs/backupninja" +license=('GPL') +depends=('bash') +makedepends=('git') +optdepends=('dialog: to use ninjahelper' + 'rdiff-backup: rdiff backups' + 'gzip: compress backups' + 'hwinfo: getting hardware information' + 'mariadb-clients: mysql backups' + 'rsync: secure and reliable remote syncronisation tool' + 'borg: borg backups' + 'duplicity: duplicity backups') +conflicts=('backupninja-git') +source=('git+https://github.com/benzhaomin/backupninja.git#branch=borg_support') +md5sums=('SKIP') +backup=('etc/backupninja.conf') + +build() { + cd "$srcdir/$_pkgname" + ./autogen.sh + ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --mandir=/usr/share/man --localstatedir=/var + make +} + +package() { + cd "$srcdir/$_pkgname" + make DESTDIR="$pkgdir" install + chmod a-x $pkgdir/usr/lib/$_pkgname/parseini + chmod a-x $pkgdir/usr/lib/$_pkgname/vserver + mkdir -p "$pkgdir/usr/share/doc/$_pkgname/examples" + install -Dm644 $pkgdir/usr/share/$_pkgname/example.* $pkgdir/usr/share/doc/$_pkgname/examples + rm $pkgdir/usr/share/$_pkgname/example.* +} + +# vim:set ts=2 sw=2 et: |