updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / lib32-mpfr / PKGBUILD
blob59c8177a8e78df987f387c85b9a97d510b93acb6
1 # Contributor: grimi <grimi at poczta dot fm>
2 # Contributor: <alxandre becoulet at free dot fr>
4 pkgname=lib32-mpfr
5 pkgver=3.1.0
6 pkgrel=1
7 pkgdesc="Multiple-precision floating-point library (32-bit)"
8 arch=('x86_64')
9 license=('LGPL')
10 url="http://www.mpfr.org/"
11 groups=('lib32')
12 depends=('mpfr' 'lib32-gmp>=5.0')
13 makedepends=('gcc-multilib')
14 options=('!libtool')
15 source=(http://www.mpfr.org/mpfr-current/mpfr-${pkgver}.tar.xz)
16 md5sums=('6e495841bb026481567006cec0f821c3')
18 build() {
19   cd "${srcdir}"/mpfr-${pkgver}
20   ./configure --prefix=/usr --enable-thread-safe --enable-shared \
21      --libdir='/usr/lib32' --with-gmp-include='/usr/lib32/gmp' \
22      CC='gcc -m32' PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
23   make
24   make check
27 package() {
28   cd "${srcdir}"/mpfr-${pkgver}
29   make DESTDIR="${pkgdir}" install
30   rm -rf "${pkgdir}"/usr/{share,include}