aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/gnutls/APKBUILD32
-rw-r--r--main/gnutls/libgmp.patch11
2 files changed, 35 insertions, 8 deletions
diff --git a/main/gnutls/APKBUILD b/main/gnutls/APKBUILD
index f277b69c4c..6d52f9616c 100644
--- a/main/gnutls/APKBUILD
+++ b/main/gnutls/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnutls
pkgver=3.2.1
-pkgrel=0
+pkgrel=1
pkgdesc="A TLS protocol implementation"
url="http://www.gnutls.org/"
arch="all"
@@ -12,11 +12,24 @@ depends_dev="nettle-dev zlib-dev libtasn1-dev p11-kit-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx"
-source="ftp://ftp.gnutls.org/gcrypt/gnutls/v${pkgver%.*}/$pkgname-$pkgver.tar.xz"
+source="ftp://ftp.gnutls.org/gcrypt/gnutls/v${pkgver%.*}/$pkgname-$pkgver.tar.xz
+ libgmp.patch
+ "
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
build() {
- cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr \
+ cd "$_builddir"
+ LIBS="-lgmp" ./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
@@ -30,7 +43,7 @@ build() {
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/*.la
}
@@ -47,6 +60,9 @@ xx() {
mv "$pkgdir"/usr/lib/lib*xx.so.* "$subpkgdir"/usr/lib/
}
-md5sums="c220b50736f61292ed8722d5132b6a3e gnutls-3.2.1.tar.xz"
-sha256sums="abfa8165947837ada2363355ada25d913f48e6bb261f0a67f20d2fb6079e22fe gnutls-3.2.1.tar.xz"
-sha512sums="f2b255e9bb5b7f368cfaa6241975c0ed2dabae489c0621efeb14c4dd61434471610ea2a51589512c5083e44d89205bb073fe9181756b9d5fe88ecae1d7fc4218 gnutls-3.2.1.tar.xz"
+md5sums="c220b50736f61292ed8722d5132b6a3e gnutls-3.2.1.tar.xz
+3ce8fb390345afbd490cd9ac487dabbd libgmp.patch"
+sha256sums="abfa8165947837ada2363355ada25d913f48e6bb261f0a67f20d2fb6079e22fe gnutls-3.2.1.tar.xz
+39b49c5166819cd4c57ec7d1b42e0470c5d1bde3bebb4b9fbb465d1ef2eb7d2d libgmp.patch"
+sha512sums="f2b255e9bb5b7f368cfaa6241975c0ed2dabae489c0621efeb14c4dd61434471610ea2a51589512c5083e44d89205bb073fe9181756b9d5fe88ecae1d7fc4218 gnutls-3.2.1.tar.xz
+1c02594d6bf288561ffd1f0828089a8eaa5129eac1fb2631340370ea94099762bcb883aec188bb31bffe22c0ddeee7abad5e3926b1f64dc22c916760ead16a74 libgmp.patch"
diff --git a/main/gnutls/libgmp.patch b/main/gnutls/libgmp.patch
new file mode 100644
index 0000000000..c6e2617eb1
--- /dev/null
+++ b/main/gnutls/libgmp.patch
@@ -0,0 +1,11 @@
+--- ./lib/nettle/Makefile.in.orig 2013-06-10 17:39:26.019517541 +0000
++++ ./lib/nettle/Makefile.in 2013-06-10 17:39:38.629643690 +0000
+@@ -214,7 +214,7 @@
+ CONFIG_CLEAN_FILES =
+ CONFIG_CLEAN_VPATH_FILES =
+ LTLIBRARIES = $(noinst_LTLIBRARIES)
+-libcrypto_la_LIBADD =
++libcrypto_la_LIBADD = -lgmp
+ am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo rnd.lo init.lo \
+ egd.lo
+ libcrypto_la_OBJECTS = $(am_libcrypto_la_OBJECTS)