aboutsummaryrefslogtreecommitdiffstats
path: root/main/npth/APKBUILD
blob: 9c933b71186ac977afd70628b8f34a53783c5d3a (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
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=npth
pkgver=1.1
pkgrel=0
pkgdesc="The New GNU Portable Threads library"
url="ftp://ftp.gnupg.org/gcrypt/npth/"
arch="all"
license="LGPLv3+ or GPLv2+ or (LGPLv3+ and GPLv2+)"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="ftp://ftp.gnupg.org/gcrypt/npth/npth-$pkgver.tar.bz2"

_builddir="$srcdir"/npth-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="aaffc8ef3e955ab50a1905809f268a23  npth-1.1.tar.bz2"
sha256sums="896c561eb2ec8da35f11828fb04a3fbff12d41ff657c799056d7dc4a66e5df7f  npth-1.1.tar.bz2"
sha512sums="e2aef40d2ab6353e2bfc0442d6346f2b71c6a5ef0e0255b1402396002ac289b2613cc5c10ef56f44ddbe27425a98253d733937734b58f118715576eb7343a604  npth-1.1.tar.bz2"