aboutsummaryrefslogtreecommitdiffstats
path: root/main/gmp
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-09 02:58:34 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:41 +0000
commitda067efd5eadd140947c15a7a860107b200cecf9 (patch)
tree9eecf1f1a41bd1e8110ec9c5646bc8a7c8891e8b /main/gmp
parente6891e2d085c033766245ff853783659ebef560d (diff)
downloadaports-da067efd5eadd140947c15a7a860107b200cecf9.tar.bz2
aports-da067efd5eadd140947c15a7a860107b200cecf9.tar.xz
main/gmp: add test suite
Diffstat (limited to 'main/gmp')
-rw-r--r--main/gmp/APKBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/main/gmp/APKBUILD b/main/gmp/APKBUILD
index bf9d476e5e..bf5e057226 100644
--- a/main/gmp/APKBUILD
+++ b/main/gmp/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gmp
pkgver=6.1.2
-pkgrel=0
+pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic"
url="http://gmplib.org/"
arch="all"
@@ -12,12 +12,12 @@ subpackages="$pkgname-doc $pkgname-dev libgmpxx"
source="https://gmplib.org/download/gmp/gmp-$pkgver.tar.xz
"
replaces="gmp5"
-builddir="$srcdir"/gmp-${pkgver%[a-z]}
prepare() {
cd "$builddir"
+ default_prepare
# force update to libtool with fixed cross-build support
- libtoolize -f || return 1
+ libtoolize -f
}
build() {
@@ -31,18 +31,18 @@ build() {
--mandir=/usr/share/man \
--localstatedir=/var/state/gmp \
--enable-cxx \
- --with-pic \
- || return 1
- make || return 1
-
- if [ "$CBUILD" = "$CHOST" ]; then
- make check || return 1
- fi
+ --with-pic
+ make
}
package() {
cd "$builddir"
- make -j1 DESTDIR="${pkgdir}" install || return 1
+ make -j1 DESTDIR="${pkgdir}" install
+}
+
+check() {
+ cd "$builddir"
+ [ "$CBUILD" = "$CHOST" ] && make check
}
libgmpxx() {