From 94e3eb45cd3402cbc5efd70ae725e8d48ed696af Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Jul 2011 23:13:08 +0000 Subject: Tue Jul 19 23:13:07 UTC 2011 --- testing/gmp/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 testing/gmp/PKGBUILD (limited to 'testing/gmp/PKGBUILD') 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 +# Maintainer: Jan de Groot + +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 +} -- cgit v1.2.3-54-g00ecf