# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=gnutls pkgver=3.1.0 pkgrel=0 pkgdesc="A TLS protocol implementation" url="http://www.gnu.org/software/gnutls/" 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="http://ftp.gnu.org/pub/gnu/gnutls/$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 \ || 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="db88d8fc44e44be4a0a14b24aa204bbf gnutls-3.1.0.tar.xz"