# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=s6-networking pkgver=2.2.0.0 pkgrel=1 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="skalibs-dev execline-dev s6-dev s6-dns-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 \ --prefix=/usr \ --libexecdir="/usr/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="5f45aa8839bd0486a2a55e41fa3cb1a3 s6-networking-2.2.0.0.tar.gz" sha256sums="457d956bb6463ee029af4ce74aa68a88cf238ecfe2123eef50ad5d11502a6e3d s6-networking-2.2.0.0.tar.gz" sha512sums="34979d486404d43cdfdc5e7a496898c04449c00f735a1d7b052b6beb4b3cc5a005d5aea94b99a28d9e0feb02fd150994603883c5ba8c508598b3ffb6bd655efb s6-networking-2.2.0.0.tar.gz"