chore(x11/pcsx-rearmed): enable automatic updates [no ci]
This commit is contained in:
parent
f0e84d0935
commit
98d8a17099
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue