diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-15 02:37:26 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-28 08:40:45 +0000 |
commit | 130f916153c1acfbfb9cb37c26b75e720a5b2741 (patch) | |
tree | 5d16e58fc6d9f203d660a5ebd9a359abf23f6f30 /main/gperf | |
parent | 640d639f9269d69dbbd85f0a1aa4ac5bcadeb597 (diff) | |
download | aports-130f916153c1acfbfb9cb37c26b75e720a5b2741.tar.bz2 aports-130f916153c1acfbfb9cb37c26b75e720a5b2741.tar.xz |
main/gperf: add tests
Diffstat (limited to 'main/gperf')
-rw-r--r-- | main/gperf/APKBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/main/gperf/APKBUILD b/main/gperf/APKBUILD index 3e10dbd84a..86cad7207c 100644 --- a/main/gperf/APKBUILD +++ b/main/gperf/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gperf pkgver=3.1 -pkgrel=0 +pkgrel=1 pkgdesc="Perfect hash function generator." url="http://www.gnu.org/software/gperf/" arch="all" @@ -13,17 +13,21 @@ source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" build () { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="855ebce5ff36753238a44f14c95be7afdc3990b085960345ca2caf1a2db884f7db74d406ce9eec2f4a52abb8a063d4ed000a36b317c9a353ef4e25e2cca9a3f4 gperf-3.1.tar.gz" |