# Maintainer: Laurent Bercot # Contributor: Eivind Uggedal pkgname=s6-rc pkgver=0.0.3.0 pkgrel=0 pkgdesc="A service manager for s6-based systems." url="http://skarnet.org/software/$pkgname/" arch="all" license="ISC" depends="skalibs execline s6" depends_dev="skalibs-dev execline-dev s6-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --enable-shared \ --enable-static \ --disable-allstatic \ --libdir=/usr/lib \ --libexecdir="/lib/$pkgname" \ --with-dynlib=/lib \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } doc() { default_doc mkdir -p "$subpkgdir/usr/share/doc" cp -a "$_builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } md5sums="fc7e90c360fece150e2978a44e1663e9 s6-rc-0.0.3.0.tar.gz" sha256sums="5eb94e77961a075e6305e89e3a5c7e6c95fb7037682d4ea45277c1ab1625892e s6-rc-0.0.3.0.tar.gz" sha512sums="66fe8cf1937671d3b6c06e7aca40e5b94502ca12a659b50e8120a178295084272091a378e8bbf9f69c560fbc69ca10ffdf08763cbd714ed2411d0d558437e325 s6-rc-0.0.3.0.tar.gz"