summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLW-archlinux2017-12-14 12:08:54 +0100
committerLW-archlinux2017-12-14 12:08:54 +0100
commite7a109ef8ad195b7159402f6545ea5db7dcb871b (patch)
tree4012ef9884a48f5e3ed3eb09f83f09ae408c04a6 /PKGBUILD
parente4d98cc1c49958f93774985fe704798c08cafa27 (diff)
downloadaur-e7a109ef8ad195b7159402f6545ea5db7dcb871b.tar.gz
added hook for pacman
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 54ba223a140..22e3391f549 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,18 +5,21 @@ _url="https://github.com/arch-openrc/opensysusers/archive"
pkgname=opensysusers
pkgver=0.3.2
-pkgrel=1
+pkgrel=2
pkgdesc="A standalone utility for handling systemd-style sysusers.d users and groups"
arch=('any')
url="https://github.com/artix-linux/opensysusers"
license=('custom:BSD2')
depends=('shadow' 'openrc')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/artix-linux/opensysusers/archive/$pkgver.tar.gz")
-sha256sums=('0a3ffb2bf5a3baa9bd49ef522d4bef7fbfa2f51ca6cce24d6354a7ae3c0344d8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/artix-linux/opensysusers/archive/$pkgver.tar.gz"
+ 'opensysusers.hook')
+sha256sums=('0a3ffb2bf5a3baa9bd49ef522d4bef7fbfa2f51ca6cce24d6354a7ae3c0344d8'
+ '90fdf362a29138f1ed65e86e8b97d1251adb6b2e94d829cceb0094a63d00252a')
package() {
cd $pkgname-$pkgver
make bindir="/usr/bin" DESTDIR="$pkgdir" install
install -Dm755 openrc/opensysusers.initd "$pkgdir"/etc/openrc/init.d/opensysusers
+ install -Dm644 "$srcdir"/opensysusers.hook "$pkgdir"/usr/share/libalpm/hooks/opensysusers.hook
install -Dm644 license "$pkgdir"/usr/share/licenses/opensysusers/license
}