# Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=libnsl pkgver=1.2.0 pkgrel=0 pkgdesc="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version" url="https://github.com/thkukuk/libnsl" arch="all" license="LGPL-2.0-or-later" makedepends="autoconf automake libtool libc-dev gettext-dev libtirpc-dev file" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/thkukuk/$pkgname/archive/v$pkgver.tar.gz nis_h.patch cdefs.patch " builddir="$srcdir/$pkgname-$pkgver" check() { cd "$builddir" make check } prepare() { default_prepare cd "$builddir" ./autogen.sh } build() { cd "$builddir" ./configure LIBS="-lintl" \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="30115aa679a04ad01f55cff9dd1890b4c41c730a9bac2adab5add9ae03a0b4687c5f4b6e3b8652ecbb074eefac8faee3f1f13ea60d42cf4432db8a575ca72cd8 libnsl-1.2.0.tar.gz bd120e3f8753c716c78484a9804a6314e6335bb1196cd4d456080eeee0b964a856f573885eff318725d1f0fab6a0092645e60a19602bf3f83983d53a0ee3c303 nis_h.patch d50a072d8bd42822d2c9c7e99d29e3a93e1df16a77ce46355b3e73268999e7b0cac6d39f214a28a81ac793a1fd672a39bf9fbdc9acc9a49760ab101d27c0eefc cdefs.patch"