chore(x11/pcsx-rearmed): enable automatic updates [no ci]

This commit is contained in:
Twaik Yont 2023-10-29 15:41:20 +02:00
parent f0e84d0935
commit 98d8a17099
1 changed files with 11 additions and 0 deletions

View File

@ -7,10 +7,21 @@ TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=git+https://github.com/notaz/pcsx_rearmed
TERMUX_PKG_GIT_BRANCH=r${TERMUX_PKG_VERSION}
TERMUX_PKG_SHA256=887e9b5ee7b8115d35099c730372b4158fd3e215955a06d68e20928b339646af
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libpng, opengl, pulseaudio, sdl, zlib"
TERMUX_PKG_BUILD_DEPENDS="binutils-cross"
TERMUX_PKG_BUILD_IN_SRC=true
termux_pkg_auto_update() {
# Get latest release tag:
local tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}")"
if grep -qP "^r\d+\$" <<<"$tag"; then
termux_pkg_upgrade_version "$tag"
else
echo "WARNING: Skipping auto-update: Not a release ($tag)"
fi
}
termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS"
if [ "$TERMUX_ARCH" = "arm" ]; then