CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bc: updated source
[crossrootfs.git] / libgmp / Pkgfile
index d9b3c914ebdf0ba6575275455a1d8760f2b83fac..9df41b51c0c7dcf2bb71b46c767418b75f29b75f 100644 (file)
@@ -5,19 +5,20 @@
 # 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
 }