# Description: Free library for arbitrary precision arithmetic
# URL: http://gmplib.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
# Depends on:
name=libgmp
-version=4.3.1
+version=6.1.2
release=1
-source=(ftp://ftp.gnu.org/gnu/gmp/gmp-$version.tar.bz2)
+source=(ftp://ftp.gnu.org/gnu/gmp/gmp-$version.tar.xz \
+ gmp.h)
build() {
- cd gmp-$version
- ./configure --build=$CHOST \
- --host=$CTARGET \
- --prefix=/usr \
- --enable-cxx
- make
- make DESTDIR=$PKG install
- rm -r $PKG/usr/info
+ cd gmp-$version
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --enable-cxx
+ make
+ make DESTDIR=$PKG install
+ mv $PKG/usr/include/gmp{,-32}.h
+ install -m 0644 $SRC/gmp.h $PKG/usr/include/
+ rm -r $PKG/usr/share
}