diff options
Diffstat (limited to 'main/gnutls/APKBUILD')
-rw-r--r-- | main/gnutls/APKBUILD | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/main/gnutls/APKBUILD b/main/gnutls/APKBUILD index f277b69c4..6d52f9616 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" |