diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-30 09:29:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-30 09:29:23 +0000 |
commit | de5259c329ed552fe73410d88513fa49dcb50073 (patch) | |
tree | 8d07c5e095f80eb3b5326148d07e7d5c4d10b0a1 /testing | |
parent | 6d71b0d6dfb6cde6a6da1a1c787e1904f79d09f2 (diff) | |
download | aports-de5259c329ed552fe73410d88513fa49dcb50073.tar.bz2 aports-de5259c329ed552fe73410d88513fa49dcb50073.tar.xz |
testing/npth: new aport
The New GNU Portable Threads library
ftp://ftp.gnupg.org/gcrypt/npth/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/npth/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/npth/APKBUILD b/testing/npth/APKBUILD new file mode 100644 index 0000000000..8ed9f52e2a --- /dev/null +++ b/testing/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" |