# $Id: PKGBUILD 123886 2011-05-14 03:40:36Z allan $ # Maintainer: Allan McRae # Maintainer: Jan de Groot pkgname=gmp pkgver=5.0.2 pkgrel=1 pkgdesc="A free library for arbitrary precision arithmetic" arch=('i686' 'x86_64' 'mips64el') 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" [ "${CARCH}" = "mips64el" ] && export ABI="n32" ./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 }