# Contributor: Laurent Bercot # Maintainer: Laurent Bercot pkgname=s6-rc pkgver=0.5.3.2 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.12 _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="72963b2aa8e338503918d063102653d392cbd701823e35f87b45d9777fd512f7ad49ab47b94df0f9e5ef50a0dad5162f6f3526fa77dfaa3afb48ad8db4097051 s6-rc-0.5.3.2.tar.gz"