0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
Twaik Yont 78a46c668c
chore(main/root-repo): force disable auto updates [no ci]
This is needed to avoid auto-updater script warnings.
2023-10-04 00:40:39 +03:00

35 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/termux/termux-root-packages
TERMUX_PKG_DESCRIPTION="Package repository containing programs for rooted devices"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
TERMUX_PKG_VERSION=2.4
TERMUX_PKG_REVISION=2
TERMUX_PKG_AUTO_UPDATE=false
TERMUX_PKG_DEPENDS="termux-keyring"
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/etc/apt/sources.list.d
{
echo "# The root termux repository, with cloudflare cache"
echo "deb https://packages-cf.termux.dev/apt/termux-root/ root stable"
echo "# The root termux repository, without cloudflare cache"
echo "# deb https://packages.termux.dev/apt/termux-root/ root stable"
} > $TERMUX_PREFIX/etc/apt/sources.list.d/root.list
}
termux_step_create_debscripts() {
[ "$TERMUX_PACKAGE_FORMAT" = "pacman" ] && return 0
cat <<- EOF > ./postinst
#!$TERMUX_PREFIX/bin/sh
echo "Downloading updated package list ..."
if [ -d "$TERMUX_PREFIX/etc/termux/chosen_mirrors" ] || [ -f "$TERMUX_PREFIX/etc/termux/chosen_mirrors" ]; then
pkg --check-mirror update
else
apt update
fi
exit 0
EOF
}