updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / lib32-libmpc / PKGBUILD
blob224c38ca683df6e07289147c52f10db4bd90947c
1 # Contributor: Vadym Abramchuk <abramm@gmail.com>
3 pkgname=lib32-libmpc
4 pkgver=0.9
5 pkgrel=6
6 pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision (32-bit)"
7 arch=('x86_64')
8 url="http://www.multiprecision.org/"
9 groups=('lib32')
10 license=('LGPL')
11 depends=('libmpc' 'lib32-mpfr>=3.0.0')
12 options=('!libtool')
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')
19 build() {
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
24   autoreconf
25      
26   export CC="gcc -m32"
27   export CXX="g++ -m32"
28   export LDFLAGS="-m32"
29   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
30   export ABI=32
31    
32   ./configure --prefix=/usr --libdir='/usr/lib32' --with-mpfr-lib='/usr/lib32/'\
33   --with-gmp-lib='/usr/lib32'
35   make
38 check() {
39   cd "${srcdir}/mpc-${pkgver}"
40   make check
43 package() {
44   cd "${srcdir}/mpc-${pkgver}"
45   make DESTDIR="${pkgdir}" install
46   rm -rf "${pkgdir}"/usr/{share,include}