CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libgmp: update to 5.1.2 and aligned with upstream
[ports/core-arm.git] / libgmp / Pkgfile
index 7d91fcc036cf181ce6189787ffacf6b960f8dff2..9c1d6caf45e1693eb4eebae880c163623aaab839 100644 (file)
@@ -1,19 +1,20 @@
 # Description: Free library for arbitrary precision arithmetic
-# URL:         http://gmplib.org/
-# Maintainer:  CRUX System Team, core-ports at crux dot nu
+# URL: http://gmplib.org/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on:
 
 name=libgmp
-version=4.3.2
-release=1
-source=(ftp://ftp.gnu.org/gnu/gmp/gmp-$version.tar.bz2)
+version=5.1.2
+release=2
+source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz)
 
 build() {
-    cd gmp-$version
-    ./configure --prefix=/usr \
-                       --enable-cxx \
-                       --build=$MACHTYPE
-    make
-    make DESTDIR=$PKG install
-    rm -r $PKG/usr/share
+  cd gmp-$version
+  ./configure --prefix=/usr \
+              --enable-cxx \
+              --build=arm-unknown-linux-gnueabihf
+  make
+  make DESTDIR=$PKG install
+  rm -r $PKG/usr/share
 }