Files
termux-packages/packages/libre2/build.sh
termux-pacman-bot b7be5b1582 bump(main/libre2): 2025-07-22
This commit has been automatically submitted by Github Actions.
2025-07-22 18:46:33 +00:00

22 lines
865 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/google/re2
TERMUX_PKG_DESCRIPTION="A regular expression library"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2025-07-22"
TERMUX_PKG_SRCURL=https://github.com/google/re2/releases/download/${TERMUX_PKG_VERSION//./-}/re2-${TERMUX_PKG_VERSION//./-}.tar.gz
TERMUX_PKG_SHA256=f54c29f1c3e13e12693e3d6d1230554df3ab3a1066b2e1f28c5330bfbf6db1e3
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="abseil-cpp, libc++"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_SHARED_LIBS=ON"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=11
local v=$(sed -E -n 's/^SONAME=([0-9]+)$/\1/p' Makefile)
if [ "${_SOVERSION}" != "${v}" ]; then
termux_error_exit "Error: SOVERSION guard check failed."
fi
}