mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
c61b8d4c9e
This commit has been automatically submitted by Github Actions.
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.pcre.org
|
|
TERMUX_PKG_DESCRIPTION="Perl 5 compatible regular expression library"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="10.44"
|
|
TERMUX_PKG_SRCURL=https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${TERMUX_PKG_VERSION}/pcre2-${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_SHA256=d34f02e113cf7193a1ebf2770d3ac527088d485d4e047ed10e5d217c6ef5de96
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+"
|
|
TERMUX_PKG_BREAKS="pcre2-dev"
|
|
TERMUX_PKG_REPLACES="pcre2-dev"
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
bin/pcre2test
|
|
share/man/man1/pcre2test.1
|
|
"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--enable-jit
|
|
--enable-pcre2-16
|
|
--enable-pcre2-32
|
|
"
|
|
termux_step_post_get_source() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVER_libpcre2_8=0
|
|
local _SOVER_libpcre2_16=0
|
|
local _SOVER_libpcre2_32=0
|
|
local _SOVER_libpcre2_posix=3
|
|
|
|
local a
|
|
for a in libpcre2_{8,16,32,posix}; do
|
|
local e=$(sed -En 's/^m4_define\('"${a}"'_version,\s*\[([0-9]+):([0-9]+):([0-9]+)\].*/\1-\3/p' \
|
|
configure.ac)
|
|
if [ ! "${e}" ] || [ "$(eval echo \$_SOVER_${a})" != "$(( "${e}" ))" ]; then
|
|
termux_error_exit "SOVERSION guard check failed for ${a/_/-}.so."
|
|
fi
|
|
done
|
|
}
|