summaryrefslogtreecommitdiff
path: root/nonsystemd/opensysusers/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2019-11-12 23:21:59 -0300
committerDavid P <megver83@parabola.nu>2019-11-12 23:21:59 -0300
commitc46585d255183aa1cfbfc077ae56d7a1eba12f4b (patch)
treea0f495dcbbc88dc6494740a1465fec802805cc0b /nonsystemd/opensysusers/PKGBUILD
parente9a2dc3e666d29419e0750a496f8393c21e03f29 (diff)
downloadabslibre-c46585d255183aa1cfbfc077ae56d7a1eba12f4b.tar.gz
abslibre-c46585d255183aa1cfbfc077ae56d7a1eba12f4b.tar.bz2
abslibre-c46585d255183aa1cfbfc077ae56d7a1eba12f4b.zip
addpkg: nonsystemd/opensysusers 0.5.1-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/opensysusers/PKGBUILD')
-rw-r--r--nonsystemd/opensysusers/PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/nonsystemd/opensysusers/PKGBUILD b/nonsystemd/opensysusers/PKGBUILD
new file mode 100644
index 000000000..384cb873e
--- /dev/null
+++ b/nonsystemd/opensysusers/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer David P. <megver83@parabola.nu>
+# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
+# Contributor: Luke Shumaker <lukeshu@parabola.nu>
+# Maintainer (Artix): Chris Cromer <cromer@artixlinux.org>
+# Maintainer (Artix): artoo <artoo@artixlinux.org>
+
+pkgbase=opensysusers
+pkgname=(opensysusers opensysusers-docs)
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="A standalone utility for handling systemd-style sysusers.d users and groups"
+arch=('any')
+url="https://gitea.artixlinux.org/artix/opensysusers"
+license=('BSD2')
+makedepends=('docbook-xsl')
+conflicts=('systemd-tools')
+source=("${pkgbase}-${pkgver}.tar.gz::https://gitea.artixlinux.org/artix/opensysusers/archive/${pkgver}.tar.gz"
+ '20-opensysusers.hook'
+ 'sysusers-hook')
+sha256sums=('e941ad0f8cb8b576d434c2880ef9374ba44f28a05a9325a55f09aab0974e3de3'
+ '8085d3f8e7b2030cef5e0f50622121ea161a2d9d087664f0a11d36f275b24970'
+ '4222b2496d8bb1ac9c07707e4ef1b334b8b59eb15451ea8ba0fd6e4c93e50c56')
+
+prepare(){
+ cd "${pkgbase}"
+}
+
+build(){
+ cd "${pkgbase}"
+ make PREFIX=/usr HAVEOPENRC=no
+}
+
+package_opensysusers() {
+ depends=('pacman')
+ replaces=('opensysusers-systemdcompat')
+
+ cd "${pkgbase}"
+ make PREFIX=/usr DESTDIR="${pkgdir}" install-shared install-default-bin
+
+ # pacman hooks
+ install -Dm755 ${srcdir}/sysusers-hook "$pkgdir"/usr/share/libalpm/scripts/sysusers-hook
+ install -Dm644 -t "$pkgdir"/usr/share/libalpm/hooks ${srcdir}/*.hook
+
+ ln -snf "/usr/bin/sysusers" "${pkgdir}/usr/bin/systemd-sysusers"
+}
+
+package_opensysusers-docs(){
+ pkgdesc="Opensysusers man"
+ depends=('opensysusers')
+ replaces=(opensysusers-manpages)
+
+ cd "${pkgbase}"
+ make PREFIX=/usr DESTDIR="${pkgdir}" install-man
+}
+