CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
curl: aligned with upstream
[crossrootfs.git] / libgmp / Pkgfile
index afa6f061b187c030f22e69741b5b04420192e438..361de2ab1edff62626ba88d75670b2875ed06d48 100644 (file)
@@ -1,23 +1,29 @@
 # 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=5.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)
 
 build() {
   cd gmp-$version
-
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --enable-cxx
 
+  # Avoid relinkng
+  sed "s|\$progpath \$preserve_args --mode=relink \$libtool_args|echo \"Avoid relinking\"|g" -i libtool
+
   make
+
+  # Cheat the installer
+  cp .libs/libgmpxx.so.4.3.2 .libs/libgmpxx.so.4.3.2T
+
   make DESTDIR=$PKG install
   rm -r $PKG/usr/share
 }