diff options
-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" |