lib32/lib32-gnutls/PKGBUILD

39 lines
1.1 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
pkgver=3.3.15
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/"
depends=('lib32-zlib' 'lib32-nettle' 'lib32-p11-kit' 'lib32-libtasn1' $_pkgbasename)
2013-07-27 03:04:40 +08:00
makedepends=('gcc-multilib' 'lib32-libidn')
2015-03-20 08:09:23 +08:00
source=(ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/${_pkgbasename}-${pkgver}.tar.xz)
md5sums=('03b7e282a0888a8f7620ece83d7853c6')
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
}
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
}