blob: 5a3ffbe9dbf4f72f4ac1702bf68652a9f4103e16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $Id: PKGBUILD 64806 2012-02-18 10:42:10Z bluewind $
# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: josephgbr <rafael.f.f1@gmail.com>
_pkgbasename=gmp
pkgname=lib32-$_pkgbasename
pkgver=5.0.4
pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic (32-bit)"
arch=('x86_64')
url="http://gmplib.org/"
depends=('lib32-gcc-libs' $_pkgbasename)
makedepends=(gcc-multilib)
license=('LGPL3')
options=(!libtool)
source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.xz{,.sig})
md5sums=('0881f4ff2617226c673fc534ac39d448'
'f9e448fff9eaeccdde6ee1f1df00c988')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/${_pkgbasename}-${pkgver}"
export ABI=32
./configure \
--prefix=/usr --infodir=/usr/share/info \
--enable-cxx --libdir=/usr/lib32 \
--includedir=/usr/lib32/gmp
#Put gmp.h in the same folder as gmpxx.h
sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile
make
}
check() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make check
}
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
|