diff options
author | root <root@rshg054.dnsready.net> | 2011-08-15 23:14:29 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-15 23:14:29 +0000 |
commit | ea595018ba8ae00d7030ff296ec4f50e122d2ea9 (patch) | |
tree | ea62e7b37f59699ecfd7183fa33f0f3a81d39cc0 /testing/gmp/PKGBUILD | |
parent | 4784cc8068c68b6fc23c2bd0ee8158b2a924f5f4 (diff) |
Mon Aug 15 23:14:29 UTC 2011
Diffstat (limited to 'testing/gmp/PKGBUILD')
-rw-r--r-- | testing/gmp/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/gmp/PKGBUILD b/testing/gmp/PKGBUILD new file mode 100644 index 000000000..f1055efa5 --- /dev/null +++ b/testing/gmp/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 135480 2011-08-14 09:28:35Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=gmp +pkgver=5.0.2 +pkgrel=3 +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 +} |