jobcore/libnsl/PKGBUILD-arch
2022-03-20 14:19:37 +02:00

32 lines
1,001 B
Text

# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=libnsl
pkgver=2.0.0
pkgrel=2
pkgdesc="Public client interface library for NIS(YP)"
arch=(x86_64)
url="https://github.com/thkukuk/libnsl"
license=(LGPL2.1)
depends=(glibc libtirpc)
provides=(libnsl.so)
options=(debug)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('86a7738707a3e4e56b60c8de0445fb576e66148bc12fa2a6aab422ea81eb4b42be3287a12f78384acd2b8bfb3885e9a0ce4f7328f078da3a5099acb66a35a935')
b2sums=('e16bba0d64afa3c1473be831fa9fa743e88323091a4ee62436383169d282b1ad6deab3ff1f9462828c88e443a4b9b913ac18b36c68664593a6a80dae25988b7d')
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}"
}