diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index 874948e16..bea099662 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -2,15 +2,15 @@ TERMUX_PKG_HOMEPAGE=https://termux.com/ TERMUX_PKG_DESCRIPTION="Basic system tools for Termux" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=0.134 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_VERSION=0.135 TERMUX_PKG_SKIP_SRC_EXTRACT=true TERMUX_PKG_PLATFORM_INDEPENDENT=true TERMUX_PKG_ESSENTIAL=true TERMUX_PKG_BREAKS="termux-keyring (<< 1.9)" TERMUX_PKG_CONFLICTS="procps (<< 3.3.15-2)" TERMUX_PKG_SUGGESTS="termux-api" -TERMUX_PKG_CONFFILES="etc/motd" +TERMUX_PKG_CONFFILES="etc/motd +etc/motd-playstore" # Some of these packages are not dependencies and used only to ensure # that core packages are installed after upgrading (we removed busybox @@ -48,6 +48,7 @@ termux_step_make_install() { done install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd $TERMUX_PREFIX/etc/motd + install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd-playstore $TERMUX_PREFIX/etc/motd-playstore ln -sfr $TERMUX_PREFIX/bin/termux-open $TERMUX_PREFIX/bin/xdg-open mkdir -p $TERMUX_PREFIX/share/man/man1 diff --git a/packages/termux-tools/login b/packages/termux-tools/login index aba695019..757a67694 100755 --- a/packages/termux-tools/login +++ b/packages/termux-tools/login @@ -7,6 +7,11 @@ else unset TERMUX_HUSHLOGIN fi +# TERMUX_VERSION env variable has been exported since v0.107 and PATH was being set to following value in <0.104. Last playstore version was v0.101. +if [ $# = 0 ] && [ -f @TERMUX_PREFIX@/etc/motd-playstore ] && [ -z "$TERMUX_VERSION" ] && [ "$PATH" = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets" ]; then + printf '\033[0;31m'; cat @TERMUX_PREFIX@/etc/motd-playstore; printf '\033[0m' +fi + if [ -G ~/.termux/shell ]; then export SHELL="`realpath ~/.termux/shell`" else diff --git a/packages/termux-tools/motd-playstore b/packages/termux-tools/motd-playstore new file mode 100644 index 000000000..e7ace4ead --- /dev/null +++ b/packages/termux-tools/motd-playstore @@ -0,0 +1,21 @@ + +You are likely using a very old version of Termux, +probably installed from the Google Play Store. +There are plans in the near future to remove the +Termux apps from the Play Store so that new users +cannot install them and to **disable** them for +existing users with app updates to prevent the use +of outdated app versions. Instead, you are +encouraged to move to F-Droid or Github sources +(see [1]). You can backup all your current Termux +data before uninstallation and then restore it later +by following instructions in the wiki [2]. Check +the changelog [3] for all the new features and fixes +that you are currently missing. Check [4] for why +this is being done. + +[1] https://github.com/termux/termux-app#installation +[2] https://wiki.termux.com/wiki/Backing_up_Termux +[3] https://github.com/termux/termux-app/releases +[4] https://github.com/termux/termux-app#google-play-store-deprecated +