CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
grep: updated to 3.1
[crossrootfs.git] / libgmp / Pkgfile
index 1f13b1cc00234c7cdb8ebcc5888ed9248803ca48..1fae4e420213c61902a927e8ae8859e3495da08f 100644 (file)
@@ -5,9 +5,10 @@
 # Depends on:
 
 name=libgmp
-version=5.0.2
+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
@@ -15,8 +16,9 @@ build() {
               --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
 }