# $Id: PKGBUILD 158748 2012-05-09 01:14:08Z allan $ # Maintainer: Allan McRae <allan@archlinux.org> # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=gmp pkgver=5.0.5 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.xz{,.sig}) md5sums=('8aef50959acec2a1ad41d144ffe0f3b5' '406e8878aadc51b134d1b3dd845261ee') 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 }