1 # Contributor: Vadym Abramchuk <abramm@gmail.com>
6 pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision (32-bit)"
8 url="http://www.multiprecision.org/"
11 depends=('libmpc' 'lib32-mpfr>=3.0.0')
13 install=libmpc.install
14 source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz
15 libmpc-0.9-configure_cflags_egrep_issue.patch)
16 md5sums=('0d6acab8d214bd7d1fbbc593e83dd00d'
17 '35d5bb02dc6c1153e581b7c34a738a08')
20 cd "${srcdir}/mpc-${pkgver}"
22 # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html
23 patch -Np1 -i $srcdir/libmpc-0.9-configure_cflags_egrep_issue.patch
29 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
32 ./configure --prefix=/usr --libdir='/usr/lib32' --with-mpfr-lib='/usr/lib32/'\
33 --with-gmp-lib='/usr/lib32'
39 cd "${srcdir}/mpc-${pkgver}"
44 cd "${srcdir}/mpc-${pkgver}"
45 make DESTDIR="${pkgdir}" install
46 rm -rf "${pkgdir}"/usr/{share,include}