aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libnsl/APKBUILD
blob: 8ccb76087d5d6adb923cb40d6daf324bab97c564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=libnsl
pkgver=1.0.5
pkgrel=1
pkgdesc="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version"
url="https://github.com/thkukuk/libnsl"
arch="all"
license="LGPL2+"
options="!check"
depends=
depends_dev=
makedepends="autoconf automake libtool libc-dev gettext-dev libtirpc-dev"
install=
subpackages="$pkgname-dev"
source="https://github.com/thkukuk/$pkgname/archive/$pkgname-$pkgver.tar.gz
	nis_h.patch
	cdefs.patch
	"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

prepare() {
	default_prepare || return 1

	cd "$builddir"
	./autogen.sh
}

build() {
	cd "$builddir"
	./configure LIBS="-lintl" \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="ce0423042d372a9f800738480d222164e7ad2e09c9efa80d4845b9a06b78f478c395a65a4c175dd708d01f0bb9be9514526c44df48990221fd6d28c785767c49  libnsl-1.0.5.tar.gz
6c555a8efab74eb55e0aaa2bef97d8ab14e382afaec59b99b47ff6f9abf4d33881f20543f88d41beabddfe934c368c4340c7254354fa9680120c0cc021df3468  nis_h.patch
a0a761a50d611207cae4ad8e46b5b61fed498fe8c094841de99a550b43a0f95febcbccfafcd9568622abeb6e822f4bd9a21ecb261cb86fd8f4e601ce60749a9d  cdefs.patch"