-
Notifications
You must be signed in to change notification settings - Fork 18
/
PKGBUILD
27 lines (24 loc) · 847 Bytes
/
PKGBUILD
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
# Maintainer: Sébastien Luttringer
pkgname=archivetools-git
pkgver="$(git log --pretty=format:''|wc -l)"
pkgrel=1
pkgdesc='Archlinux Archive Tools (Git version)'
arch=('any')
url='https://github.com/seblu/archivetools'
license=('GPL2')
depends=('rsync' 'hardlink' 'xz' 'util-linux')
conflicts=('archivetools')
backup=('etc/archive.conf')
install=archivetools.install
package() {
cd "$startdir"
install -Dm644 archive.conf "$pkgdir/etc/archive.conf"
install -Dm755 archive.sh "$pkgdir/usr/bin/archive"
# systemd stuff
install -Dm644 archive.sysusers "$pkgdir/usr/lib/sysusers.d/archive.conf"
install -Dm644 archive.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/archive.conf"
for _p in archive.{timer,service} archive-hardlink.{timer,service}; do
install -Dm644 $_p "$pkgdir/usr/lib/systemd/system/$_p"
done
}
# vim:set ts=2 sw=2 et: