Files
termux-pacman-bot 9818b00c0c fix(main/libwolfssl): apply TERMUX_PKG_UPDATE_TAG_TYPE=latest-release-tag
- Fixes https://github.com/termux/termux-packages/issues/27786

- This project releases multiple types of tags, but their GitHub "Release tags" appear to always be for the project Termux packages.

%ci:no-build
2026-02-03 11:47:38 +00:00

27 lines
1.0 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.wolfssl.com/
TERMUX_PKG_DESCRIPTION="A small, fast, portable implementation of TLS/SSL for embedded devices to the cloud"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="5.8.4"
TERMUX_PKG_SRCURL=https://github.com/wolfSSL/wolfssl/archive/refs/tags/v${TERMUX_PKG_VERSION}-stable.tar.gz
TERMUX_PKG_SHA256=2b702b7a66b0067bfd284408827b1e59288b357b0dd758d0089c062395f2a522
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
TERMUX_PKG_UPDATE_TAG_TYPE=latest-release-tag
termux_step_pre_configure() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=44
local a
for a in WOLFSSL_LIBRARY_VERSION_FIRST; do
local _${a}=$(sed -En 's/^set\('"${a}"'\s+([0-9]+).*/\1/p' \
CMakeLists.txt)
done
local v=${_WOLFSSL_LIBRARY_VERSION_FIRST}
if [ ! "${v}" ] || [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed. Expected ${_SOVERSION}, got ${v}."
fi
}