# Contributor: John Regan # Maintainer: John Regan pkgname=s6-portable-utils pkgver=2.0.3.0 pkgrel=1 pkgdesc="skarnet.org's tiny portable generic utilities" url="http://skarnet.org/software/$pkgname/" arch="all" license="ISC" depends="skalibs" depends_dev="skalibs-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-dev" 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 \ --build=$CBUILD \ --host=$CHOST \ --enable-shared \ --enable-static \ --disable-allstatic \ --prefix=/usr \ --libdir=/usr/lib \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="6f4b4f03c389b62ba595f589172ba6ea s6-portable-utils-2.0.3.0.tar.gz" sha256sums="c2991ef8b10f7c334a815e8f708a111e618ed06f540b354bf016bf7e66660345 s6-portable-utils-2.0.3.0.tar.gz" sha512sums="c5389f3b30f01a64752a4519c72a6f078901a1d8162c20bd95c38ea40a934e76435cf5a15c5c95105c33b708ff67706d5305a521df3c59d5cbc3367e2b229a60 s6-portable-utils-2.0.3.0.tar.gz"