summaryrefslogtreecommitdiff
path: root/testing/gmp/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-19 23:13:08 +0000
committerroot <root@rshg047.dnsready.net>2011-07-19 23:13:08 +0000
commit94e3eb45cd3402cbc5efd70ae725e8d48ed696af (patch)
tree5f43e51e770fce190ea2732d7784460e4a34b351 /testing/gmp/PKGBUILD
parent040215f1ca1d14472525c2562bc33e84f9728d4a (diff)
Tue Jul 19 23:13:07 UTC 2011
Diffstat (limited to 'testing/gmp/PKGBUILD')
-rw-r--r--testing/gmp/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/gmp/PKGBUILD b/testing/gmp/PKGBUILD
new file mode 100644
index 000000000..c8b486dec
--- /dev/null
+++ b/testing/gmp/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 131961 2011-07-18 11:43:05Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=gmp
+pkgver=5.0.2
+pkgrel=2
+pkgdesc="A free library for arbitrary precision arithmetic"
+arch=('i686' 'x86_64')
+url="http://gmplib.org/"
+depends=('gcc-libs' 'sh')
+license=('LGPL3')
+options=(!libtool)
+install=gmp.install
+source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2
+ 538dfce27f41.patch)
+md5sums=('0bbaedc82fb30315b06b1588b9077cd3'
+ 'a769be9c41618ca9c35d83375e7097d0')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i $srcdir/538dfce27f41.patch
+
+ [ "${CARCH}" = "i686" ] && export ABI="32"
+ ./configure --build=${CHOST} \
+ --prefix=/usr --infodir=/usr/share/info \
+ --enable-cxx
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}