# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=gnutls pkgver=3.3.7 pkgrel=1 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="a7a73cfa883cd106d70b15300552a5b5 gnutls-3.3.7.tar.xz" sha256sums="52d86c1bf2ff142c5499037db812d06d42e29bcfefe1fdd2035aaab38677c79f gnutls-3.3.7.tar.xz" sha512sums="7173f30c7160118a5204bd108eeaba47d507df6b3dcb78f1086b5640519f820b6268d2edfe0f5f0165cab110cde3d6996e2f9563cb39209b574dedacfd9e3715 gnutls-3.3.7.tar.xz"