# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=gnutls pkgver=3.3.8 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-dbg $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="b57e6b7630bdba9ea8eb28ff0eb29c2f gnutls-3.3.8.tar.xz" sha256sums="bd4642f180e19632f4ed3a1e62d60c824c7b695f5cddf41a8fba1b272eaef046 gnutls-3.3.8.tar.xz" sha512sums="6b778df551a4eea1e920be0596137ca1e5995392f7a2e489beb79124cadac132111f0f763beb2857b6d305b3c4b8378c48e2106daf9e10a7dee3a2dbd9b833fd gnutls-3.3.8.tar.xz"