aboutsummaryrefslogtreecommitdiffstats
path: root/main/npth
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-09-01 22:31:30 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-09-02 20:24:28 +0000
commit27889191990126297f374fefcd4f45ba0a74ba97 (patch)
tree4700891936d6a16eef98212edc8069ac67c4c848 /main/npth
parentfd57ed22cc876046f6bac0dd32b2824297a91133 (diff)
downloadaports-27889191990126297f374fefcd4f45ba0a74ba97.tar.bz2
aports-27889191990126297f374fefcd4f45ba0a74ba97.tar.xz
main/npth: modernize APKBUILD and add check
Diffstat (limited to 'main/npth')
-rw-r--r--main/npth/APKBUILD33
1 files changed, 12 insertions, 21 deletions
diff --git a/main/npth/APKBUILD b/main/npth/APKBUILD
index 18626cee99..3e808b0258 100644
--- a/main/npth/APKBUILD
+++ b/main/npth/APKBUILD
@@ -1,31 +1,18 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=npth
pkgver=1.5
-pkgrel=0
+pkgrel=1
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
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -33,14 +20,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
sha512sums="20f0ec59d304c68081e42535870af8e76c18e30aa7b04ccdafe60fe5261ad7275c2c0e3ea3a767d6145258a3a39fa641032cd97205318266dd727a5fe7ee331a npth-1.5.tar.bz2"