CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libgmp: updated to 6.0.0a
[crossrootfs.git] / libgmp / Pkgfile
index e0ca8e5b02fbb28b37a27e1e7f5639d7db9e914a..124712a32e8c2461e34a76841c52160c342cd3ad 100644 (file)
@@ -5,17 +5,20 @@
 # Depends on:
 
 name=libgmp
-version=5.1.2
+version=6.0.0a
 release=1
-source=(ftp://ftp.gnu.org/gnu/gmp/gmp-$version.tar.xz)
+source=(ftp://ftp.gmplib.org/pub/gmp-${version%a}/gmp-$version.tar.xz \
+        gmp.h)
 
 build() {
-  cd gmp-$version
+  cd gmp-${version%a}
   ./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
 }