1 # $Id: PKGBUILD 72634 2010-03-19 02:57:15Z allan $
6 pkgdesc="Legacy version of gmp. Provides libgmp.so.3"
8 url="http://gmplib.org/"
9 depends=('gcc-libs' 'sh')
13 source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
14 md5sums=('dd60683d7057917e34630b4a787932e8')
18 local pkgdir2="${srcdir}/${pkgname}-${pkgver}.obj"
20 cd "${srcdir}/${pkgname}-${pkgver}"
21 [ "${CARCH}" = "i686" ] && export ABI="32"
22 ./configure --build=$CHOST \
23 --prefix=/usr --infodir=/usr/share/info \
24 --enable-cxx || return 1
26 make check || return 1
27 make DESTDIR="${pkgdir2}" install || return 1
28 mkdir -p "${pkgdir}/usr/lib"
29 cp -a "${pkgdir2}/usr/lib"/libgmp.so.3* "${pkgdir}/usr/lib" || return 1