summaryrefslogtreecommitdiff
path: root/pcr/opensysusers/PKGBUILD
blob: e49c7162ee8f8348ed82184319ff115f65d3be43 (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
# Maintainer: David P. <megver83@parabola.nu>
# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
# Maintainer (Artix): Chris Cromer <chris@artixlinux.org>

_url="https://github.com/artix-linux/opensysusers/archive"

pkgname=opensysusers
pkgver=0.3.2
pkgrel=1.parabola1
pkgdesc="A standalone utility for handling systemd-style sysusers.d users and groups"
arch=('any')
url="https://github.com/artix-linux/opensysusers"
license=('BSD2')
groups=('openrc-base' 'base-openrc')
depends=('shadow')
optdepends=('openrc: update automatically on boot')
source=("${pkgname}-${pkgver}.tar.gz::${_url}/${pkgver}.tar.gz"
        'opensysusers.hook')
sha512sums=('713bce28364e4cb19271ad8f3f5fe4e45b688d1c3724c6cdfc6e014fe5ebdd107c1a0f46897e3cb1b885fca3385e46e6cb3cba119558b52580381260a21a23a0'
            '1f5d110e0575ac41b66b3710e26a85cb9806589fb543c2ffaed81643225de0e23d473342931c12dd725e3b4744a5fb71b7bb9c5731dc0a7dfb02add019acebc9')

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make bindir="/usr/bin" DESTDIR="${pkgdir}" install
#	install -vDm0755 openrc/opensysusers.initd "${pkgdir}"/etc/init.d/opensysusers
	install -vDm0644 "${srcdir}"/opensysusers.hook "${pkgdir}/usr/share/libalpm/hooks/opensysusers.hook"

	ln -snf "/usr/bin/sysusers" "${pkgdir}/usr/bin/systemd-sysusers"
# 	install -dm0755 "${pkgdir}/etc/runlevels/boot"
# 	ln -snf "/etc/init.d/opensysusers" "${pkgdir}/etc/runlevels/boot/opensysusers"
}