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