libxlsxwriter: Enable auto-update

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2023-01-08 14:49:23 +09:00 committed by xtkoba
parent a8d95f31c7
commit eee6e309e6
1 changed files with 14 additions and 0 deletions

View File

@ -7,5 +7,19 @@ TERMUX_PKG_VERSION=1.1.4
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/jmcnamara/libxlsxwriter/archive/refs/tags/RELEASE_${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b379eb35fdd9c653ebe72485b9c992f612c7ea66f732784457997d6e782f619b
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+.\d+.\d+"
TERMUX_PKG_DEPENDS="zlib"
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=4
local v=$(sed -En 's/.*LXW_SOVERSION .*"(.*)".*/\1/p' \
include/xlsxwriter.h)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}