pkgname=gmp pkgver=4.2.4 pkgrel=1 pkgdesc="A free library for arbitrary precision arithmetic" url="http://gmplib.org/" license="LGPL3" makedepends="m4 texinfo" subpackages="$pkgname-doc $pkgname-dev" source="ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.4.tar.bz2 gmp-4.1.4-noexecstack.patch " build () { cd "${srcdir}/${pkgname}-${pkgver}"; patch -p1 < ../gmp-4.1.4-noexecstack.patch || return 1 ABI="32" ./configure --prefix=/usr \ --build=${CHOST} \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --localstatedir=/var/state/gmp \ --disable-mpfr \ --disable-mpbsd \ --disable-cxx \ --with-pic \ || return 1 make || return 1 make -j1 DESTDIR="${pkgdir}" install || return 1 } md5sums="fc1e3b3a2a5038d4d74138d0b9cf8dbe gmp-4.2.4.tar.bz2 13c34f00e77ded6673270cfea06c35c3 gmp-4.1.4-noexecstack.patch"