aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgcrypt
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-17 01:24:48 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:46 +0000
commit0619d547289a42cd7249a7b364a5b2a80e27b212 (patch)
tree06167f8b4e84f3f8607f6542a40bb1381b63628a /main/libgcrypt
parent7a4c6a646dd9b39eb358088956ca3bc54a65d12b (diff)
downloadaports-0619d547289a42cd7249a7b364a5b2a80e27b212.tar.bz2
aports-0619d547289a42cd7249a7b364a5b2a80e27b212.tar.xz
main/libgcrypt: modernise and add test suite
Diffstat (limited to 'main/libgcrypt')
-rw-r--r--main/libgcrypt/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/libgcrypt/APKBUILD b/main/libgcrypt/APKBUILD
index ca5b41c034..4959ef0184 100644
--- a/main/libgcrypt/APKBUILD
+++ b/main/libgcrypt/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.8.0
-pkgrel=0
+pkgrel=1
pkgdesc="general purpose crypto library based on the code used in GnuPG"
url="http://www.gnupg.org"
arch="all"
@@ -35,15 +35,19 @@ build () {
--mandir=/usr/share/man \
--localstatedir=/var \
--disable-static \
- $_arch_configure \
- || return 1
+ $_arch_configure
- make || return 1
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
+ make -j1 DESTDIR="$pkgdir" install
rm -f ${pkgdir}/usr/share/info/dir
}