aboutsummaryrefslogtreecommitdiffstats
path: root/main/gmp
diff options
context:
space:
mode:
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() {