aboutsummaryrefslogtreecommitdiffstats
path: root/main/npth
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-09-30 09:31:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-30 13:03:36 +0000
commit5e83df416f5d33d3c02c1415122e9bdfd15616de (patch)
tree8103fed479f5e10c25882ece310bb241a795d8c9 /main/npth
parent580b9217f4197754a82eac8d0d2ce304943e23cd (diff)
downloadaports-5e83df416f5d33d3c02c1415122e9bdfd15616de.tar.bz2
aports-5e83df416f5d33d3c02c1415122e9bdfd15616de.tar.xz
main/ntph: moved from testing
Diffstat (limited to 'main/npth')
-rw-r--r--main/npth/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/npth/APKBUILD b/main/npth/APKBUILD
new file mode 100644
index 0000000000..8ed9f52e2a
--- /dev/null
+++ b/main/npth/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor:
+# Maintainer:
+pkgname=npth
+pkgver=0.91
+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="87712f0cee656c390b49773923e26e7f npth-0.91.tar.bz2"
+sha256sums="caef86ced4a331e162897818a5b924860c8d6003e52da5bdf76da00e8e0dfae1 npth-0.91.tar.bz2"
+sha512sums="728ae7d5dadb253f0ca77fea455f81eed5fa437c6a85d3846d0bb00efd105a433d046a7b64df51f5de5f5535d983ac95d9f9f217b0c1b8b6321e6640eed71f83 npth-0.91.tar.bz2"