# $Id: PKGBUILD 138216 2011-09-19 03:13:19Z andyrtr $ # Maintainer: Jan de Groot pkgname=gnutls pkgver=3.0.3 pkgrel=1 pkgdesc="A library which provides a secure layer over a reliable transport layer" arch=('i686' 'x86_64') license=('GPL3' 'LGPL') url="http://www.gnu.org/software/gnutls/" install=gnutls.install options=('!libtool' '!zipman') depends=('gcc-libs' 'libtasn1' 'readline' 'zlib' 'nettle>=2.2' 'p11-kit') makedepends=('valgrind') source=(ftp://ftp.gnu.org/gnu/gnutls/${pkgname}-${pkgver}.tar.xz) md5sums=('7b45b99cb6d314c452f8c0f1c7a736dd') sha1sums=('0e6c325ae12cf1a4bd7d25125b8d58d51472fc14') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ --with-zlib \ --disable-static \ --disable-guile \ --disable-valgrind-tests # breaks make check. errors have been reported upstream make } check() { cd "${srcdir}/${pkgname}-${pkgver}" make check # passes all || /bin/true } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install # lots of .png files are put into infodir and are gzipped by makepkg! this may need to be fixed by using !zipman # gzip -9 all files in infodir and manpages manually find "$pkgdir/usr/share/info" -name '*.info*' -exec gzip -9 {} \; find "$pkgdir/usr/share/man" -exec gzip -9 {} \; }