diff options
-rw-r--r-- | main/gmp/APKBUILD | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/main/gmp/APKBUILD b/main/gmp/APKBUILD index 774030a368..bf9d476e5e 100644 --- a/main/gmp/APKBUILD +++ b/main/gmp/APKBUILD @@ -1,6 +1,6 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gmp -pkgver=6.1.1 +pkgver=6.1.2 pkgrel=0 pkgdesc="A free library for arbitrary precision arithmetic" url="http://gmplib.org/" @@ -12,16 +12,16 @@ subpackages="$pkgname-doc $pkgname-dev libgmpxx" source="https://gmplib.org/download/gmp/gmp-$pkgver.tar.xz " replaces="gmp5" -_builddir="$srcdir"/gmp-${pkgver%[a-z]} +builddir="$srcdir"/gmp-${pkgver%[a-z]} prepare() { - cd "$_builddir" + cd "$builddir" # force update to libtool with fixed cross-build support libtoolize -f || return 1 } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -34,13 +34,14 @@ build() { --with-pic \ || return 1 make || return 1 + if [ "$CBUILD" = "$CHOST" ]; then make check || return 1 fi } package() { - cd "$_builddir" + cd "$builddir" make -j1 DESTDIR="${pkgdir}" install || return 1 } @@ -55,6 +56,6 @@ doc() { replaces="gmp5-doc" } -md5sums="e70e183609244a332d80529e7e155a35 gmp-6.1.1.tar.xz" -sha256sums="d36e9c05df488ad630fff17edb50051d6432357f9ce04e34a09b3d818825e831 gmp-6.1.1.tar.xz" -sha512sums="6ead5fdf15891e0c47b094351497a052cc691973f09c60a8322546418eb615bddb180a93fd7846b88b096b5644cb9d375eab2a4a07af64399f5159eccf3edee2 gmp-6.1.1.tar.xz" +md5sums="f58fa8001d60c4c77595fbbb62b63c1d gmp-6.1.2.tar.xz" +sha256sums="87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912 gmp-6.1.2.tar.xz" +sha512sums="9f098281c0593b76ee174b722936952671fab1dae353ce3ed436a31fe2bc9d542eca752353f6645b7077c1f395ab4fdd355c58e08e2a801368f1375690eee2c6 gmp-6.1.2.tar.xz" |