lib32/lib32-gnutls/PKGBUILD

46 lines
1.3 KiB
Bash
Raw Normal View History

2015-03-20 08:09:23 +08:00
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/lib32-gnutls
2011-01-15 19:35:48 +08:00
_pkgbasename=gnutls
pkgname=lib32-$_pkgbasename
2015-11-19 01:44:17 +08:00
pkgver=3.4.6
2011-08-11 17:15:20 +08:00
pkgrel=1
2011-01-15 19:35:48 +08:00
pkgdesc="A library which provides a secure layer over a reliable transport layer (32-bit)"
arch=('x86_64')
2015-03-20 08:09:23 +08:00
license=('GPL3' 'LGPL2.1')
url="http://gnutls.org/"
2015-09-14 13:57:31 +08:00
depends=('lib32-zlib' 'lib32-nettle' 'lib32-p11-kit' 'lib32-libtasn1' 'lib32-libidn' "$_pkgbasename=${pkgver}")
makedepends=('gcc-multilib')
source=(ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/${_pkgbasename}-${pkgver}.tar.xz{,.sig})
2015-11-19 01:44:17 +08:00
md5sums=('4f2c4b4483da65de7edfeb050911fafb'
2015-09-14 13:57:31 +08:00
'SKIP')
validpgpkeys=(1F42418905D8206AA754CCDC29EE58B996865171)
2011-01-15 19:35:48 +08:00
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd ${srcdir}/${_pkgbasename}-${pkgver}
2013-07-27 03:04:40 +08:00
2015-03-20 08:09:23 +08:00
# 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
2011-01-15 19:35:48 +08:00
make
}
2015-09-14 13:57:31 +08:00
check() {
cd ${srcdir}/${_pkgbasename}-${pkgver}
#make -k check
}
2011-01-15 19:35:48 +08:00
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make DESTDIR="${pkgdir}" install
2015-03-20 08:09:23 +08:00
find $pkgdir
2011-01-15 19:35:48 +08:00
rm -rf "${pkgdir}"/usr/{bin,include,share}
2015-03-20 08:09:23 +08:00
}