# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=gnutls pkgver=3.1.9 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="0674032fe6de0d90d08eed81fcac2e1d gnutls-3.1.9.tar.xz" sha256sums="0900c4ae2e026a4c714d88e1aa134db2e0be9ecddf0be9641ade5dafcf877c3e gnutls-3.1.9.tar.xz" sha512sums="53a68240ca6e01fdcb4907a72a7ed574b02f9a0bcde26199d17c9468323ab21aed1e7b0be0a196ac55c0a8831328292142c2a46583f839232ffedb7b6723e618 gnutls-3.1.9.tar.xz"