# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=s6 pkgver=2.11.3.2 pkgrel=2 pkgdesc="skarnet.org's small & secure supervision software suite." url="https://skarnet.org/software/$pkgname/" arch="all" license="ISC" makedepends="skalibs-dev>=2.13 execline-dev" depends="s6-ipcserver" options="!check" subpackages="$pkgname-ipcserver $pkgname-static $pkgname-dev $pkgname-doc $pkgname-openrc" source="https://skarnet.org/software/s6/s6-$pkgver.tar.gz s6-svscanboot s6.initd" install="s6.pre-install s6.pre-upgrade" triggers="s6.trigger=/run/service" _ipcserver_binaries="bin/s6-ipcserver bin/s6-ipcserver-socketbinder bin/s6-ipcserverd bin/s6-applyuidgid" build() { ./configure \ --enable-shared \ --enable-static \ --disable-allstatic \ --libdir=/usr/lib \ --libexecdir="/lib/$pkgname" \ --with-dynlib=/lib make } package() { make DESTDIR="$pkgdir" install install -D "$srcdir/s6-svscanboot" "$pkgdir/lib/s6/s6-svscanboot" install -D "$srcdir/s6.initd" "$pkgdir/etc/init.d/s6" } doc() { default_doc mkdir -p "$subpkgdir/usr/share/doc" cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } ipcserver() { depends="" amove $_ipcserver_binaries } sha512sums=" fe87c7984905b3eb35d7c91a3f0b6ece5cb0eb2c6d16ea7725655f118c464cf017e10b6ed82b3b12b6deb331538fc5d20afea7f34ff98b85d4c437b09e07371a s6-2.11.3.2.tar.gz bcb503c64fe4644b8f33775e94f03f08e422854247d14c9ff85f5d593b37fb2373fadf373da4226a1e2f4eba17a99fdcd40acb3645f8533f2f3e1a55c984f053 s6-svscanboot d4ff33bbd674160f3d47ed8d566fe756ee5a54e1e8febd7d873f5f5158d1c4eeac1ddf460fbc6f23b75a8ee2d007117c3ababa6311ae9dcc5ad087dc4a154eee s6.initd "