diff options
Diffstat (limited to 'abs/core/libmpc/PKGBUILD')
-rw-r--r-- | abs/core/libmpc/PKGBUILD | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/abs/core/libmpc/PKGBUILD b/abs/core/libmpc/PKGBUILD index 9aad761..f482d41 100644 --- a/abs/core/libmpc/PKGBUILD +++ b/abs/core/libmpc/PKGBUILD @@ -1,28 +1,39 @@ -# $Id: PKGBUILD 82441 2010-06-11 06:42:48Z allan $ +# $Id: PKGBUILD 135910 2011-08-20 07:14:03Z allan $ # Maintainer: Allan McRae <allan@archlinux.org> pkgname=libmpc -pkgver=0.8.2 +pkgver=0.9 pkgrel=2 pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision" arch=('i686' 'x86_64') -url="http://www.multiprecision.org" +url="http://www.multiprecision.org/" license=('LGPL') depends=('mpfr>=3.0.0') options=('!libtool') install=libmpc.install -source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz) -md5sums=('e98267ebd5648a39f881d66797122fb6') +source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz + libmpc-0.9-configure_cflags_egrep_issue.patch) +md5sums=('0d6acab8d214bd7d1fbbc593e83dd00d' + '35d5bb02dc6c1153e581b7c34a738a08') build() { - cd $srcdir/mpc-$pkgver + cd "${srcdir}/mpc-${pkgver}" + + # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html + patch -Np1 -i $srcdir/libmpc-0.9-configure_cflags_egrep_issue.patch + autoreconf + ./configure --prefix=/usr make +} + +check() { + cd "${srcdir}/mpc-${pkgver}" make check } package() { - cd $srcdir/mpc-$pkgver - make DESTDIR=$pkgdir/ install - mv -f $pkgdir/usr/share/info/{mpc,libmpc}.info + cd "${srcdir}/mpc-${pkgver}" + make DESTDIR="${pkgdir}" install + mv ${pkgdir}/usr/share/info/{mpc,libmpc}.info } |