# Contributor: John Regan # Maintainer: John Regan pkgname=s6-networking pkgver=2.1.0.1 pkgrel=0 pkgdesc="skarnet.org's UCSPI Unix and TCP tools, access control tools, and network time management utilities." url="http://skarnet.org/software/$pkgname/" arch="all" license="ISC" depends="skalibs execline s6 s6-dns" depends_dev="skalibs-dev execline-dev s6-dev s6-dns-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 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="e3710e78febaac493ad97760970f95d6 s6-networking-2.1.0.1.tar.gz" sha256sums="34fc27d30e1f917be99d92b2a52c464d2948479ea679a737e3d00faaf46ceb0e s6-networking-2.1.0.1.tar.gz" sha512sums="ac3aca6e7bfc1ffbda2fdb1cef55f06fcf776beb68288958da5a8acd2923cfe9afbe1540bfa94610be31c8205d77b0d6209668eb14d710b5f3d9073471fe746c s6-networking-2.1.0.1.tar.gz"