OSDN Git Service

upg
[joborun/jobcore.git] / libnsl / PKGBUILD
1 #!/usr/bin/bash
2 # JOBoRun               : Jwm OpenBox Obarun RUNit
3 # Maintainer            : Joe Bo Run <joborun@disroot.org>
4 # PkgSource             : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
5 #-----------------------------------------| DESCRIPTION |---------------------------------------
6
7 pkgname=libnsl
8 pkgver=2.0.0
9 pkgrel=02
10 pkgdesc="Public client interface library for NIS(YP)"
11 arch=(x86_64)
12 url="https://github.com/thkukuk/libnsl"
13 depends=(glibc libtirpc)
14 provides=(libnsl.so)
15 #options=(debug)
16 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
17
18 prepare() {
19   cd "$pkgname-$pkgver"
20   autoreconf -fiv
21 }
22
23 build() {
24   cd "$pkgname-$pkgver"
25   ./configure --prefix=/usr --disable-static
26   make
27 }
28
29 package() {
30   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
31   install -vDm 644 $pkgname-$pkgver/{AUTHORS,NEWS,README} -t "${pkgdir}/usr/share/doc/${pkgname}"
32 }
33
34 #---- license gpg-key sha256sums ----
35
36 license=('LGPL2.1')
37
38 sha256sums=(eb37be57c1cf650b3a8a4fc7cd66c8b3dfc06215b41956a16325a9388171bc40) #  libnsl-2.0.0.tar.gz
39