3efa45721a
* calcurse: update to 4.6.0 * dialog: update to 20200327 * dictd: update to 1.13.0 * gitea: update to 1.11.4 * jfrog-cli: update to 1.35.3 * libgd: update to 2.3.0 * libgit2: update to 1.0.0 * libgraphite: update to 1.3.14 * libnftnl: update to 1.1.6 * vim, vim-python: update to 8.2.0500 * unrar: update to 5.9.2 * remind: update to 03.03.01 * nano: update to 4.9.1 * seafile-client: update to 7.0.7 * libgnutls: update to 3.6.13 * apache2: update to 2.4.43
31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.gnutls.org/
|
|
TERMUX_PKG_DESCRIPTION="Secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them"
|
|
TERMUX_PKG_LICENSE="LGPL-2.1"
|
|
TERMUX_PKG_VERSION=3.6.13
|
|
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/gnutls/v${TERMUX_PKG_VERSION:0:3}/gnutls-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=32041df447d9f4644570cf573c9f60358e865637d69b7e59d1159b7240b52f38
|
|
TERMUX_PKG_DEPENDS="libgmp, libnettle, ca-certificates, libidn2, libunistring"
|
|
TERMUX_PKG_BREAKS="libgnutls-dev"
|
|
TERMUX_PKG_REPLACES="libgnutls-dev"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--enable-cxx
|
|
--disable-hardware-acceleration
|
|
--disable-openssl-compatibility
|
|
--with-default-trust-store-file=$TERMUX_PREFIX/etc/tls/cert.pem
|
|
--with-system-priority-file=${TERMUX_PREFIX}/etc/gnutls/default-priorities
|
|
--with-included-libtasn1
|
|
--without-p11-kit
|
|
--disable-guile
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
CFLAGS+=" -DNO_INLINE_GETPASS=1"
|
|
if $TERMUX_DEBUG; then
|
|
# When doing debug build, -D_FORTIFY_SOURCE=2 gives this error:
|
|
# /home/builder/.termux-build/_cache/android-r20-api-24-v2/bin/../sysroot/usr/include/bits/fortify/string.h:157:22: error: use of undeclared identifier '__USE_FORTIFY_LEVEL'
|
|
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
|
|
fi
|
|
}
|