# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=gnutls pkgver=3.1.11 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" install= subpackages="$pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx" source="ftp://ftp.gnutls.org/gcrypt/gnutls/v${pkgver%.*}/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir/$pkgname-$pkgver" ./configure --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 "$srcdir/$pkgname-$pkgver" 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="b1c8f431f7c258a1e76cdba05cc1dd88 gnutls-3.1.11.tar.xz" sha256sums="a73ac5bc692450c4c99277125d938367e3d5b8a6945358c98564ea67e2545772 gnutls-3.1.11.tar.xz" sha512sums="6ccb313db3c18a9b838aefd39e07b809821d64bdcb8435c213914661b6eca7ba4f4acedad30b3e33d2ab43a2ce5ef2d2cc587ba6e75bbf2c802c080b1e2f94ee gnutls-3.1.11.tar.xz"