libgcrypt: bump to 1.10.3

This commit is contained in:
Chongyun Lee 2023-12-25 18:07:19 +08:00
parent e0608e3dc3
commit 53a95e8b34
1 changed files with 24 additions and 2 deletions

View File

@ -3,9 +3,9 @@ TERMUX_PKG_DESCRIPTION="General purpose cryptographic library based on the code
TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.1, BSD 3-Clause, MIT, Public Domain"
TERMUX_PKG_LICENSE_FILE="COPYING, COPYING.LIB, LICENSES"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.10.2
TERMUX_PKG_VERSION=1.10.3
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=3b9c02a004b68c256add99701de00b383accccf37177e0d6c58289664cce0c03
TERMUX_PKG_SHA256=8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa
TERMUX_PKG_DEPENDS="libgpg-error"
TERMUX_PKG_BUILD_DEPENDS="binutils-cross"
TERMUX_PKG_BREAKS="libgcrypt-dev"
@ -14,6 +14,23 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-jent-support
"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=20
local a
for a in LT_CURRENT LT_AGE; do
local _${a}=$(sed -En 's/^LIBGCRYPT_'"${a}"'=([0-9]+).*/\1/p' \
configure.ac)
done
local v=$(( _LT_CURRENT - _LT_AGE ))
if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_pre_configure() {
autoreconf -fi
@ -27,4 +44,9 @@ termux_step_pre_configure() {
# Fix i686 android build, also in https://bugzilla.gnome.org/show_bug.cgi?id=724050
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
fi
# Fix build with lld 17, for more information, see the following links:
# https://github.com/termux/termux-packages/issues/18761#issuecomment-1868896237
# https://github.com/termux/termux-packages/issues/18810
LDFLAGS+=" -Wl,--undefined-version"
}