mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 09:52:15 +08:00
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/lib32-gnutls
|
|
|
|
_pkgbasename=gnutls
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=3.4.6
|
|
pkgrel=1
|
|
pkgdesc="A library which provides a secure layer over a reliable transport layer (32-bit)"
|
|
arch=('x86_64')
|
|
license=('GPL3' 'LGPL2.1')
|
|
url="http://gnutls.org/"
|
|
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})
|
|
md5sums=('4f2c4b4483da65de7edfeb050911fafb'
|
|
'SKIP')
|
|
validpgpkeys=(1F42418905D8206AA754CCDC29EE58B996865171)
|
|
|
|
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
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
|
#make -k check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
find $pkgdir
|
|
|
|
rm -rf "${pkgdir}"/usr/{bin,include,share}
|
|
}
|