2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/msgpack/msgpack-c/
|
2021-09-29 16:30:28 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="MessagePack implementation for C"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-09-29 16:30:28 +02:00
|
|
|
TERMUX_PKG_VERSION=4.0.0
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/msgpack/msgpack-c/releases/download/c-${TERMUX_PKG_VERSION}/msgpack-c-${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=420fe35e7572f2a168d17e660ef981a589c9cbe77faa25eb34a520e1fcc032c8
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-04-01 09:41:46 +02:00
|
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libmsgpack-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libmsgpack-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2017-08-07 21:13:58 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
-DMSGPACK_BUILD_EXAMPLES=OFF
|
|
|
|
-DMSGPACK_BUILD_TESTS=OFF
|
|
|
|
"
|
2022-04-02 15:50:05 +02:00
|
|
|
|
|
|
|
termux_pkg_auto_update() {
|
|
|
|
# Get latest release tag:
|
|
|
|
local tag
|
|
|
|
tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}")"
|
|
|
|
# check if this is not a c++ release:
|
|
|
|
if grep -qP "^c-${TERMUX_PKG_UPDATE_VERSION_REGEXP}$" <<<"$tag"; then
|
|
|
|
termux_pkg_upgrade_version "$tag"
|
|
|
|
else
|
|
|
|
echo "WARNING: Skipping auto-update of ${TERMUX_PKG_NAME}: Not a C release($tag)"
|
|
|
|
fi
|
|
|
|
}
|