2017-05-23 15:07:23 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
|
2017-05-22 14:04:54 +02:00
|
|
|
pkgname=mingw-w64-gnutls
|
2022-05-18 14:40:39 +02:00
|
|
|
pkgver=3.7.5
|
2019-06-27 11:25:35 +02:00
|
|
|
pkgrel=1
|
2017-09-04 18:46:02 +02:00
|
|
|
pkgdesc='A library which provides a secure layer over a reliable transport layer (mingw-w64)'
|
|
|
|
arch=('any')
|
2017-05-22 14:04:54 +02:00
|
|
|
url="http://www.gnu.org/software/gnutls"
|
2019-07-26 13:08:52 +02:00
|
|
|
license=('GPL3' 'LGPL2.1')
|
|
|
|
makedepends=('mingw-w64-configure' 'autogen')
|
|
|
|
checkdepends=('mingw-w64-wine')
|
2017-09-04 18:46:02 +02:00
|
|
|
depends=('mingw-w64-crt' 'mingw-w64-libtasn1' 'mingw-w64-readline' 'mingw-w64-zlib' 'mingw-w64-nettle' 'mingw-w64-p11-kit' 'mingw-w64-libunistring')
|
2017-05-22 14:04:54 +02:00
|
|
|
options=(staticlibs !strip !buildflags)
|
|
|
|
optdepends=("mingw-w64-openssl: libgnutls-openssl")
|
2019-01-17 15:30:42 +01:00
|
|
|
source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v${pkgver%.*}/${pkgname#mingw-w64-}-${pkgver}.tar.xz{,.sig}
|
2017-05-22 14:04:54 +02:00
|
|
|
'gnutls-fix-external-libtasn1-detection.patch')
|
2022-05-18 14:40:39 +02:00
|
|
|
sha256sums=('1f85028475b4f255cc5b480af0c37e61eab43024c1507c8b75d6be506c0553ad'
|
2017-05-23 15:07:23 +02:00
|
|
|
'SKIP'
|
2018-06-19 17:42:59 +02:00
|
|
|
'8525da75852a516be0cb05df0a770daf19ce0583033260d6cac03a1e40fd2072')
|
2021-06-21 15:20:13 +02:00
|
|
|
validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno <ueno@unixuser.org>"
|
2017-05-22 14:04:54 +02:00
|
|
|
|
2017-05-23 15:07:23 +02:00
|
|
|
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
2017-05-22 14:04:54 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/gnutls-${pkgver}"
|
|
|
|
patch -p0 -i ../gnutls-fix-external-libtasn1-detection.patch
|
|
|
|
sed 's/gnutls_srp.c//g' -i lib/Makefile.in
|
|
|
|
sed 's/gnutls_srp.lo//g' -i lib/Makefile.in
|
|
|
|
rm -f lib/minitasn1/*.c lib/minitasn1/*.h
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/gnutls-${pkgver}"
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
mkdir -p build-${_arch} && pushd build-${_arch}
|
2019-07-26 13:08:52 +02:00
|
|
|
#export WINEPATH=/usr/${_arch}/bin
|
2018-05-05 19:52:54 +02:00
|
|
|
${_arch}-configure \
|
|
|
|
--disable-doc \
|
2017-05-22 14:04:54 +02:00
|
|
|
--disable-openssl-compatibility \
|
|
|
|
--disable-srp-authentication \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-non-suiteb-curves \
|
2018-05-05 19:52:54 +02:00
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-guile \
|
|
|
|
--disable-full-test-suite \
|
|
|
|
--with-libiconv-prefix=/usr/$_arch \
|
|
|
|
--with-regex-libs=-lsystre \
|
|
|
|
--enable-nls \
|
|
|
|
--enable-cxx \
|
2017-05-22 14:04:54 +02:00
|
|
|
--enable-local-libopts \
|
|
|
|
--without-tpm
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-07-26 13:08:52 +02:00
|
|
|
check() {
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
cd "${srcdir}/gnutls-${pkgver}/build-${_arch}"
|
|
|
|
export WINEPATH=/usr/${_arch}/bin
|
|
|
|
msg2 'Skipping check due to undefined reference errors'
|
|
|
|
#WINEDEBUG=all make -C tests check
|
|
|
|
done
|
|
|
|
}
|
2018-05-05 19:52:54 +02:00
|
|
|
|
2017-05-22 14:04:54 +02:00
|
|
|
package() {
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
cd "${srcdir}/gnutls-${pkgver}/build-${_arch}"
|
|
|
|
make DESTDIR="$pkgdir" install
|
2017-09-18 20:58:58 +02:00
|
|
|
|
2017-05-23 15:07:23 +02:00
|
|
|
${_arch}-strip --strip-all "$pkgdir"/usr/${_arch}/bin/*.exe
|
2017-05-22 14:04:54 +02:00
|
|
|
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
|
|
|
|
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
|
|
|
|
done
|
|
|
|
}
|