mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-02 00:50:23 +00:00
26 lines
984 B
Bash
26 lines
984 B
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.6.3
|
|
TERMUX_PKG_SRCURL=https://github.com/wolfSSL/wolfssl/archive/refs/tags/v${TERMUX_PKG_VERSION}-stable.tar.gz
|
|
TERMUX_PKG_SHA256=2e74a397fa797c2902d7467d500de904907666afb4ff80f6464f6efd5afb114a
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
|
|
|
|
termux_step_pre_configure() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=35
|
|
|
|
local a
|
|
for a in LIBTOOL_CURRENT LIBTOOL_AGE; do
|
|
local _${a}=$(sed -En 's/^set\('"${a}"'\s+([0-9]+).*/\1/p' \
|
|
CMakeLists.txt)
|
|
done
|
|
local v=$(( _LIBTOOL_CURRENT - _LIBTOOL_AGE ))
|
|
if [ ! "${_LIBTOOL_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|