summaryrefslogtreecommitdiff
path: root/core/gmp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/gmp/PKGBUILD')
-rw-r--r--core/gmp/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/core/gmp/PKGBUILD b/core/gmp/PKGBUILD
new file mode 100644
index 000000000..234f18ad8
--- /dev/null
+++ b/core/gmp/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 105599 2011-01-10 18:34:30Z stephane $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=gmp
+pkgver=5.0.1
+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)
+md5sums=('6bac6df75c192a13419dfd71d19240a7')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ [ "${CARCH}" = "i686" ] && export ABI="32"
+ ./configure --build=${CHOST} \
+ --prefix=/usr --infodir=/usr/share/info \
+ --enable-cxx
+ make
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}