mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 13:03:31 +00:00
2688eb2265
This commit has been automatically submitted by Github Actions.
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://nghttp2.org/
|
|
TERMUX_PKG_DESCRIPTION="nghttp HTTP 2.0 library"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.64.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/nghttp2/nghttp2/releases/download/v${TERMUX_PKG_VERSION}/nghttp2-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=88bb94c9e4fd1c499967f83dece36a78122af7d5fb40da2019c56b9ccc6eb9dd
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BREAKS="libnghttp2-dev"
|
|
TERMUX_PKG_REPLACES="libnghttp2-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-lib-only"
|
|
# The tools are not built due to --enable-lib-only:
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1 share/nghttp2/fetch-ocsp-response"
|
|
|
|
termux_step_post_get_source() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=14
|
|
|
|
local a
|
|
for a in LT_CURRENT LT_AGE; do
|
|
local _${a}=$(sed -En 's/^AC_SUBST\('"${a}"',\s*([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
|
|
}
|