summaryrefslogtreecommitdiff
path: root/testing/gmp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gmp/PKGBUILD')
-rw-r--r--testing/gmp/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/gmp/PKGBUILD b/testing/gmp/PKGBUILD
new file mode 100644
index 000000000..6092809d9
--- /dev/null
+++ b/testing/gmp/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 123886 2011-05-14 03:40:36Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=gmp
+pkgver=5.0.2
+pkgrel=1
+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)
+md5sums=('0bbaedc82fb30315b06b1588b9077cd3')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ [ "${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
+}