aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-05 15:22:13 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:40 +0000
commit674a13c4a95407e55eb080f7a5d9f69118e16fa2 (patch)
treec919d1ffc32ee8b2d37b8245f409f3783934d614 /main
parent8397d850ffb89f8c51c9079af7c73f0b0c6f8caf (diff)
downloadaports-674a13c4a95407e55eb080f7a5d9f69118e16fa2.tar.bz2
aports-674a13c4a95407e55eb080f7a5d9f69118e16fa2.tar.xz
main/gdbm: modernise and add tests
Diffstat (limited to 'main')
-rw-r--r--main/gdbm/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/main/gdbm/APKBUILD b/main/gdbm/APKBUILD
index 632bceb5fb..e5f4b02734 100644
--- a/main/gdbm/APKBUILD
+++ b/main/gdbm/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gdbm
pkgver=1.13
-pkgrel=0
+pkgrel=1
pkgdesc="GNU dbm is a set of database routines that use extensible hashing"
url="http://www.gnu.org/software/gdbm/"
arch="all"
@@ -25,15 +25,18 @@ build() {
--enable-libgdbm-compat \
--disable-largefile \
--disable-dependency-tracking \
- --enable-fast-install \
- || return 1
- make || return 1
+ --enable-fast-install
+ make
}
-package() {
+check() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make check
+}
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
sha512sums="fdb777f5b415b0578ea46b4a6fc70151a04a3568e2f2c8c0219ccad8c0d34abb773d80d5d7a06462ad1a3d6c1f3b5b7ab25f9de4f43ccf05c58db05f9a2906ad gdbm-1.13.tar.gz"