summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/gmp/PKGBUILD30
-rw-r--r--abs/core/gmp/gmp.install2
2 files changed, 21 insertions, 11 deletions
diff --git a/abs/core/gmp/PKGBUILD b/abs/core/gmp/PKGBUILD
index 1a0d9c3..d0490e5 100644
--- a/abs/core/gmp/PKGBUILD
+++ b/abs/core/gmp/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 72634 2010-03-19 02:57:15Z allan $
+# $Id: PKGBUILD 158748 2012-05-09 01:14:08Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=gmp
-pkgver=5.0.1
-pkgrel=2
+pkgver=5.0.5
+pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic"
arch=('i686' 'x86_64')
url="http://gmplib.org/"
@@ -12,16 +12,26 @@ depends=('gcc-libs' 'sh')
license=('LGPL3')
options=(!libtool)
install=gmp.install
-source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
-md5sums=('6bac6df75c192a13419dfd71d19240a7')
+source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.xz{,.sig})
+md5sums=('8aef50959acec2a1ad41d144ffe0f3b5'
+ '406e8878aadc51b134d1b3dd845261ee')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+
[ "${CARCH}" = "i686" ] && export ABI="32"
- ./configure --build=$CHOST \
+ ./configure --build=${CHOST} \
--prefix=/usr --infodir=/usr/share/info \
- --enable-cxx || return 1
- make || return 1
- make check || return 1
- make DESTDIR="${pkgdir}" install || return 1
+ --enable-cxx
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
}
diff --git a/abs/core/gmp/gmp.install b/abs/core/gmp/gmp.install
index 1c31ab3..cad3354 100644
--- a/abs/core/gmp/gmp.install
+++ b/abs/core/gmp/gmp.install
@@ -1,4 +1,4 @@
-info_dir=/usr/share/info
+info_dir=usr/share/info
info_files=(gmp.info gmp.info-1 gmp.info-2)
post_install() {