# Contributor: Laurent Bercot # Maintainer: Laurent Bercot pkgname=s6-rc pkgver=0.5.3.3 pkgrel=0 pkgdesc="skarnet.org's service manager, working on top of s6" url="https://skarnet.org/software/s6-rc/" arch="all" options="!check" license="ISC" _skalibs_version=2.13 _s6_version=2.11 depends="execline" makedepends="skalibs-dev>=$_skalibs_version execline-dev s6-dev>=$_s6_version" subpackages="$pkgname-libs $pkgname-dev $pkgname-libs-dev:libsdev $pkgname-doc" source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz" build() { ./configure \ --enable-shared \ --enable-static \ --enable-allstatic \ --enable-static-libc \ --libdir=/usr/lib \ --libexecdir="/lib/$pkgname" \ --with-dynlib=/lib make } package() { make DESTDIR="$pkgdir" install } libs() { pkgdesc="$pkgdesc (shared libraries)" depends="skalibs-libs>=$_skalibs_version s6-libs>=$_s6_version" mkdir -p "$subpkgdir/lib" mv "$pkgdir"/lib/*.so.* "$subpkgdir/lib/" } dev() { pkgdesc="$pkgdesc (development files)" depends="skalibs-dev>=$_skalibs_version s6-dev>=$_s6_version" install_if="dev $pkgname=$pkgver-r$pkgrel" mkdir -p "$subpkgdir/usr/include" "$subpkgdir/usr/lib" mv "$pkgdir/usr/include" "$subpkgdir/usr/" mv "$pkgdir"/usr/lib/*.a "$subpkgdir/usr/lib/" } libsdev() { pkgdesc="$pkgdesc (development files for dynamic linking)" depends="$pkgname-dev" mkdir -p "$subpkgdir/lib" mv "$pkgdir"/lib/*.so "$subpkgdir/lib/" } doc() { pkgdesc="$pkgdesc (documentation)" depends="" install_if="docs $pkgname=$pkgver-r$pkgrel" mkdir -p "$subpkgdir/usr/share/doc" cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } sha512sums="9ff86c1490c3ccb904126ad745a45628104880e04f3e95e2d899c8e5cc951d52f38885e85a4edc1f6962a741ca229aba6bf7878b1ef193efe2f307eeda8f262b s6-rc-0.5.3.3.tar.gz"