aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nsss/APKBUILD
blob: e2ceaf765b1cbd23cb6418416a78ca142b5b9cc2 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=nsss
pkgver=0.0.2.2
pkgrel=0
pkgdesc=" A small and statically linkable alternative to Name Service Switch"
url="https://skarnet.org/software/nsss"
arch="all"
license="ISC"
makedepends="skalibs-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://skarnet.org/software/nsss/nsss-$pkgver.tar.gz"

build() {
	./configure \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib \
		--libexecdir="/usr/lib/$pkgname" \
		--with-dynlib=/lib
	make
}

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

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}
sha512sums="6cece92d0aa48eb47baa321d20b77fe48d7255dd07d2d4226c9319d817e6355f72277c119ef9aa2dab8c65e144a9c13ca9df4d55120c250ca048c109ee16380f  nsss-0.0.2.2.tar.gz"