# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=gnutls pkgver=3.2.1 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="c220b50736f61292ed8722d5132b6a3e gnutls-3.2.1.tar.xz" sha256sums="abfa8165947837ada2363355ada25d913f48e6bb261f0a67f20d2fb6079e22fe gnutls-3.2.1.tar.xz" sha512sums="f2b255e9bb5b7f368cfaa6241975c0ed2dabae489c0621efeb14c4dd61434471610ea2a51589512c5083e44d89205bb073fe9181756b9d5fe88ecae1d7fc4218 gnutls-3.2.1.tar.xz"