aboutsummaryrefslogtreecommitdiffstats
path: root/main/npth/APKBUILD
blob: 18626cee99eec9318f22a4f2b8dbd29c5fbd6deb (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=npth
pkgver=1.5
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
}

sha512sums="20f0ec59d304c68081e42535870af8e76c18e30aa7b04ccdafe60fe5261ad7275c2c0e3ea3a767d6145258a3a39fa641032cd97205318266dd727a5fe7ee331a  npth-1.5.tar.bz2"