blob: 61f9fb95bc34506a6fafe97025966393c0d6d17d (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
_pkgname=backupninja
pkgname=$_pkgname-git
pkgver=872.f9529d1
pkgrel=1
pkgdesc="A centralized way to configure and schedule many different backup utilities"
arch=('any')
url="https://labs.riseup.net/code/projects/backupninja"
license=('GPL')
depends=('bash' 'dialog')
makedepends=('git')
optdepends=('rdiff-backup: rdiff backups'
'gzip: compress backups'
'hwinfo: geting hardware information'
'mariadb-clients: mysql backups'
'rsync: secure and reliable remote syncronisation tool'
'duplicity: duplicity backups')
source=('backupninja::git+https://0xacab.org/riseuplabs/backupninja.git')
md5sums=('SKIP')
backup=('etc/backupninja.conf')
pkgver() {
cd "$SRCDEST/$_pkgname"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
./autogen.sh
./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --mandir=/usr/share/man
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:
|