diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/gmp/APKBUILD (renamed from main/gmp5/APKBUILD) | 34 | ||||
-rw-r--r-- | main/gmp/gmp-4.1.4-noexecstack.patch (renamed from main/gmp5/gmp-4.1.4-noexecstack.patch) | 0 |
2 files changed, 14 insertions, 20 deletions
diff --git a/main/gmp5/APKBUILD b/main/gmp/APKBUILD index 1e36906556..36754f55f7 100644 --- a/main/gmp5/APKBUILD +++ b/main/gmp/APKBUILD @@ -1,8 +1,6 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> -_name=gmp -pkgname=${_name}5 - -pkgver=5.1.3 +pkgname=gmp +pkgver=6.0.0a pkgrel=0 pkgdesc="A free library for arbitrary precision arithmetic" url="http://gmplib.org/" @@ -10,16 +8,14 @@ arch="all" license="LGPL3" makedepends="m4 texinfo" depends= -subpackages="$pkgname-doc gmp-dev libgmpxx" +subpackages="$pkgname-doc $pkgname-dev libgmpxx" source="ftp://ftp.gnu.org/gnu/gmp/gmp-$pkgver.tar.bz2 - gmp-4.1.4-noexecstack.patch " - -_builddir="$srcdir"/$_name-$pkgver +replaces="gmp5" +_builddir="$srcdir"/gmp-${pkgver%[a-z]} prepare() { cd "$_builddir" - patch -p1 < "$srcdir"/gmp-4.1.4-noexecstack.patch || return 1 sed -i -e "/# We cannot seem to hardcode it, guess we'll fake it./"'{ n; s/add_dir="-L$libdir"/add_dir="-L$lt_sysroot$libdir"/ }' ltmain.sh || return 1 } @@ -37,6 +33,7 @@ build() { --with-pic \ || return 1 make || return 1 + make check || return 1 } package() { @@ -45,20 +42,17 @@ package() { rm "$pkgdir"/usr/lib/*.la || return 1 } -dev() { - replaces="gmp gmp5-dev" - default_dev -} - libgmpxx() { pkgdesc="C++ support for gmp" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libgmpxx.so.* "$subpkgdir"/usr/lib/ } -md5sums="a082867cbca5e898371a97bb27b31fea gmp-5.1.3.tar.bz2 -13c34f00e77ded6673270cfea06c35c3 gmp-4.1.4-noexecstack.patch" -sha256sums="752079520b4690531171d0f4532e40f08600215feefede70b24fabdc6f1ab160 gmp-5.1.3.tar.bz2 -68601777151a1628d7bc839eddd037685c5d2e76c9453166890a5eb3cf6000c3 gmp-4.1.4-noexecstack.patch" -sha512sums="f42ce1fa02962d25f94e21c79837f0eac1f8fc8d5c7804b7413926be8739ae0e8da33c63b5cebad17b3b6caae495ace0ef2e54dd2f194a0870e85c48172382dc gmp-5.1.3.tar.bz2 -74b8b68061a1a5ac0f8b163974834465e86e930884e1a9cd15c4c948fdae95ffdcbb6e0210d56df6d0dcf1ccbe13dbdfe45552e645c3fdea6454747731b63bc8 gmp-4.1.4-noexecstack.patch" +doc() { + default_doc + replaces="gmp5-doc" +} + +md5sums="b7ff2d88cae7f8085bd5006096eed470 gmp-6.0.0a.tar.bz2" +sha256sums="7f8e9a804b9c6d07164cf754207be838ece1219425d64e28cfa3e70d5c759aaf gmp-6.0.0a.tar.bz2" +sha512sums="04c8fde7f6e9c2e42753cebf6345d74ef6bdae5ef764df303b6615d17c8d851ac2876ca32c6ba5e111a8d07575c8b725c7b90518a6616be27a7b46d6aeb82c1a gmp-6.0.0a.tar.bz2" diff --git a/main/gmp5/gmp-4.1.4-noexecstack.patch b/main/gmp/gmp-4.1.4-noexecstack.patch index 093bec1a5d..093bec1a5d 100644 --- a/main/gmp5/gmp-4.1.4-noexecstack.patch +++ b/main/gmp/gmp-4.1.4-noexecstack.patch |