# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=s6-dns pkgver=2.3.5.5 pkgrel=2 pkgdesc="skarnet.org's DNS client libraries and command-line DNS client utilities" url="https://skarnet.org/software/$pkgname/" arch="all" license="ISC" options="!check" makedepends="skalibs-dev>=2.13" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="https://skarnet.org/software/s6-dns/s6-dns-$pkgver.tar.gz s6-dns.pc" prepare() { default_prepare sed -i -e "s/@@VERSION@@/$pkgver/g" -- "$srcdir"/*.pc } build() { ./configure \ --enable-shared \ --enable-static \ --disable-allstatic \ --prefix=/usr \ --libdir=/usr/lib \ --libexecdir="/usr/lib/$pkgname" \ --with-dynlib=/lib make } package() { make DESTDIR="$pkgdir" install install -D -m644 "$srcdir/s6-dns.pc" "$pkgdir/usr/lib/pkgconfig/s6-dns.pc" } doc() { default_doc mkdir -p "$subpkgdir/usr/share/doc" cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } static() { default_static rmdir -p "$pkgdir"/usr/lib/"$pkgname" || : } sha512sums=" 7d7435da8fab3dd8f872c4dd90338fae2b817b4cb1e4715cc86d77b4c1f58e931bdeb1385093f6bd6293951f97f765fb6372af5560042ae84b5bd53ecc2645c2 s6-dns-2.3.5.5.tar.gz 2b285cf8691ad30e8ada115d2ee81b4d356eda042b0ab18cf3006069707963bedc922c9f3bf2051c11e4abc30abed2932fd6c3f1f8d4e0d54bf11e30c3741090 s6-dns.pc "