CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
curl: aligned with upstream
[crossrootfs.git] / libgmp / Pkgfile
index 1f13b1cc00234c7cdb8ebcc5888ed9248803ca48..361de2ab1edff62626ba88d75670b2875ed06d48 100644 (file)
@@ -5,9 +5,9 @@
 # Depends on:
 
 name=libgmp
-version=5.0.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
@@ -16,7 +16,14 @@ build() {
               --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
 }