mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-14 13:50:56 +00:00
32 lines
1.2 KiB
Bash
32 lines
1.2 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.68.0"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/nghttp2/nghttp2/releases/download/v${TERMUX_PKG_VERSION}/nghttp2-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=5511d3128850e01b5b26ec92bf39df15381c767a63441438b25ad6235def902c
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
|
|
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
|
|
}
|