blob: a6578f53d0d502ff78d4912ff087e3a7757de973 (
plain)
1 # Description: Free library for arbitrary precision arithmetic
2 # URL: http://gmplib.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=libgmp
6 version=5.1.2
7 release=2
8 source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz \
9 gmp.h)
10
11 build() {
12 cd gmp-$version
13 ./configure --prefix=/usr \
14 --enable-cxx \
15 --build=x86_64-unknown-linux-gnu
16 make
17 make DESTDIR=$PKG install
18 mv $PKG/usr/include/gmp{,-64}.h
19 install -m 0644 $SRC/gmp.h $PKG/usr/include/
20 rm -r $PKG/usr/share
21 }
|