# Contributor: John Regan # Maintainer: John Regan pkgname=s6-dns pkgver=2.0.0.6 pkgrel=0 pkgdesc="skarnet.org's DNS client libraries and command-line DNS client 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 } md5sums="675bd46a03411a623a0515d2269b804d s6-dns-2.0.0.6.tar.gz" sha256sums="dc63c9247bd18984de1197798533a01bc16e250fa8de11037481fd82831fede8 s6-dns-2.0.0.6.tar.gz" sha512sums="41e7b2a2147dd56f884f3c48adb5910cb75bce0c443fa16b374389bd809bfb2fb29ebf30c3ca1e1366e77e61b303fa5f4df6fb2eebd0e560bc5901a05cbb8214 s6-dns-2.0.0.6.tar.gz"