# $Id: PKGBUILD 77613 2012-10-13 10:53:28Z bluewind $ # Maintainer: Florian Pritz # Contributor: Christoph Vigano # Contributor: Biru Ionut # Contributor: Pierre Schmitz # Contributor: Mikko Seppälä _pkgbasename=gnutls pkgname=lib32-$_pkgbasename pkgver=3.1.3 pkgrel=1 pkgdesc="A library which provides a secure layer over a reliable transport layer (32-bit)" arch=('x86_64') license=('GPL3' 'LGPL') url="http://www.gnu.org/software/gnutls/" options=('!libtool') depends=('lib32-zlib' 'lib32-nettle>=2.4' 'lib32-p11-kit>=0.12' 'lib32-libtasn1' $_pkgbasename) makedepends=('gcc-multilib' 'lib32-libidn') source=(ftp://ftp.gnu.org/gnu/gnutls/${_pkgbasename}-${pkgver}.tar.xz{,.sig}) md5sums=('8a7b47456f65ffa8c01c58461fed1388' 'ecd7bfe70612f88afd117124e18444df') build() { export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" cd ${srcdir}/${_pkgbasename}-${pkgver} # build fails without --disable-hardware-acceleration because of assembler errors ./configure --prefix=/usr --libdir=/usr/lib32 \ --with-zlib \ --disable-static \ --disable-guile \ --disable-valgrind-tests --disable-hardware-acceleration make } package() { cd "${srcdir}/${_pkgbasename}-${pkgver}" make DESTDIR="${pkgdir}" install find $pkgdir rm -rf "${pkgdir}"/usr/{bin,include,share} }