# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=gnutls pkgver=3.3.2 pkgrel=0 pkgdesc="A TLS protocol implementation" url="http://www.gnutls.org/" arch="all" license="GPL" depends= depends_dev="nettle-dev zlib-dev libtasn1-dev p11-kit-dev" makedepends="$depends_dev texinfo" install= subpackages="$pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx" source="ftp://ftp.gnutls.org/gcrypt/gnutls/v${pkgver%.*}/$pkgname-$pkgver.tar.xz " _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 "$_builddir" LIBS="-lgmp" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-openssl-compatibility \ --disable-rpath \ --disable-static \ --disable-guile \ --disable-valgrind-tests \ || return 1 make } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/*.la } utils() { pkgdesc="Command line tools for TLS protocol" mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } xx() { pkgdesc="The C++ interface to GnuTLS" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*xx.so.* "$subpkgdir"/usr/lib/ } md5sums="590851c331b1851c0ed3388879922c06 gnutls-3.3.2.tar.xz" sha256sums="133a630771835718a882ae595eec1ad1e852bddd95c9d561442400fbe25eb776 gnutls-3.3.2.tar.xz" sha512sums="38a2be19a73f152df75caaf19c6baf6a3c4aec28740b98494873d3ab1c272e7d27925d47f089d2c6959ff5ba82bfe8b91d1b9768a71b2c5357ef1c35262cdcbd gnutls-3.3.2.tar.xz"