Name libnsl
Description Public client interface library for NIS(YP)
Version 2.0.1-1
Package Base libnsl
Homepage https://github.com/thkukuk/libnsl
Maintainers ['David Runge <dvzrv@archlinux.org>']
Contributors ['Bartłomiej Piotrowski <bpiotrowski@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/libnsl
Sources ['https://github.com/thkukuk/libnsl/archive/v2.0.1/libnsl-v2.0.1.tar.gz']
Dependencies ['glibc', 'libtirpc']
Optional-Dependencies []
Build-Dependencies []
Provides ['libnsl.so']
Builddate 13-10-2023 19:20:11
Architecture x86_64
Distro-Version
Licenses ['LGPL-2.1-only']
Hash 2d9c86e58b6b59e0e3b7dc284d3dc8af6a671f81d13babf076dce6d43de02c52
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgname=libnsl
pkgver=2.0.1
pkgrel=1
pkgdesc="Public client interface library for NIS(YP)"
arch=(x86_64)
url="https://github.com/thkukuk/libnsl"
license=(LGPL-2.1-only)
depends=(
  glibc
  libtirpc
)
provides=(libnsl.so)
source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
sha512sums=('1d9290c3123c0933f156808c388654698f7d6994c625cbbc492cc07d656b996c62847048b14b93b8eda632945096ace418a3418ee1f40ff2cc748a3278f987a4')
b2sums=('6988399a5c0f0dab89a47a026e8717f4a3276b0af7c7c507e7bcf1093951a258b54e84e09a679ff4e426ecffbcbb682c31ca393bde6cd92708e07d4709c203aa')

prepare() {
  cd $pkgname-$pkgver
  autoreconf -fiv
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
  install -vDm 644 $pkgname-$pkgver/{AUTHORS,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
}