CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bc: updated source
[crossrootfs.git] / libgmp / Pkgfile
index afa6f061b187c030f22e69741b5b04420192e438..9df41b51c0c7dcf2bb71b46c767418b75f29b75f 100644 (file)
@@ -1,23 +1,24 @@
 # 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, devel@crux-arm.nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on:
 
 name=libgmp
-version=4.3.2
+version=6.1.2
 release=1
-source=(ftp://ftp.gnu.org/gnu/gmp/gmp-$version.tar.bz2)
+source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz \
+        gmp.h)
 
 build() {
   cd gmp-$version
-
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --enable-cxx
-
   make
   make DESTDIR=$PKG install
+  mv $PKG/usr/include/gmp{,-64}.h
+  install -m 0644 $SRC/gmp.h $PKG/usr/include/
   rm -r $PKG/usr/share
 }