1 #Contributor:Xemertix <arch88(at)katamail(dot)com>
2 #based on allan pkgbuild
3 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
8 pkgdesc="Legacy version of gmp. Provides libgmp.so.3 (32 bit)"
10 url="http://gmplib.org/"
11 depends=('lib32-gcc-libs' 'sh')
12 makedepends=('gcc-multilib')
15 source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
16 md5sums=('dd60683d7057917e34630b4a787932e8')
19 cd "${srcdir}"/gmp-${pkgver}
21 ./configure --prefix=/usr --enable-cxx --libdir=/usr/lib32 \
22 --includedir=/usr/lib32/gmp \
23 ABI='32' CC='gcc -m32' CXX='g++ -m32' \
24 PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
26 #Put gmp.h in the same folder as gmpxx.h
27 sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile
33 #step highly recommended by the upstream
34 cd "${srcdir}"/gmp-${pkgver}
40 cd "${srcdir}"/gmp-${pkgver}
42 make DESTDIR="${pkgdir}" install
43 rm -rf "${pkgdir}"/usr/share