# Contributor: Leo # Maintainer: Leo pkgname=nsss pkgver=0.0.2.2 pkgrel=0 pkgdesc=" A small and statically linkable alternative to Name Service Switch" url="https://skarnet.org/software/nsss" arch="all" license="ISC" makedepends="skalibs-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://skarnet.org/software/nsss/nsss-$pkgver.tar.gz" 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 } doc() { default_doc mkdir -p "$subpkgdir/usr/share/doc" cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } sha512sums="6cece92d0aa48eb47baa321d20b77fe48d7255dd07d2d4226c9319d817e6355f72277c119ef9aa2dab8c65e144a9c13ca9df4d55120c250ca048c109ee16380f nsss-0.0.2.2.tar.gz"