# Contributor: Leo # Maintainer: Laurent Bercot pkgname=nsss pkgver=0.2.0.2 pkgrel=1 pkgdesc=" A small and statically linkable alternative to Name Service Switch" url="https://skarnet.org/software/nsss" arch="all" license="ISC" options="!check" makedepends="skalibs-dev>=2.13" 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" } check() { # To run this, you need the s6-ipcserver package installed. # Checks are disabled because s6-ipcserver may be built with nsss, # and we want to avoid cycles. cd "$builddir" mkdir -p ROOT make DESTDIR="$builddir/ROOT" install env LD_LIBRARY_PATH="$builddir/ROOT/usr/lib" make check } sha512sums=" 3b586ab77df66fe5e26927a362c3c3e84c4a053c224c2bef688056721a2756e73a7d5711c697be0fc6c94a36f7f286f84bc42134b7b1d4a21d2d9b4c92434c0c nsss-0.2.0.2.tar.gz "