Skip to content

Commit b631a09

Browse files
Merge pull request #7493 from agnostic-apollo/change-banner-for-playstore-builds
Bump termux-tools to 0.135
2 parents ea489e5 + b6a9dd1 commit b631a09

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

packages/termux-tools/build.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ TERMUX_PKG_HOMEPAGE=https://termux.com/
22
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
33
TERMUX_PKG_LICENSE="GPL-3.0"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION=0.134
6-
TERMUX_PKG_REVISION=1
5+
TERMUX_PKG_VERSION=0.135
76
TERMUX_PKG_SKIP_SRC_EXTRACT=true
87
TERMUX_PKG_PLATFORM_INDEPENDENT=true
98
TERMUX_PKG_ESSENTIAL=true
109
TERMUX_PKG_BREAKS="termux-keyring (<< 1.9)"
1110
TERMUX_PKG_CONFLICTS="procps (<< 3.3.15-2)"
1211
TERMUX_PKG_SUGGESTS="termux-api"
13-
TERMUX_PKG_CONFFILES="etc/motd"
12+
TERMUX_PKG_CONFFILES="etc/motd
13+
etc/motd-playstore"
1414

1515
# Some of these packages are not dependencies and used only to ensure
1616
# that core packages are installed after upgrading (we removed busybox
@@ -48,6 +48,7 @@ termux_step_make_install() {
4848
done
4949

5050
install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd $TERMUX_PREFIX/etc/motd
51+
install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd-playstore $TERMUX_PREFIX/etc/motd-playstore
5152
ln -sfr $TERMUX_PREFIX/bin/termux-open $TERMUX_PREFIX/bin/xdg-open
5253

5354
mkdir -p $TERMUX_PREFIX/share/man/man1

packages/termux-tools/login

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ else
77
unset TERMUX_HUSHLOGIN
88
fi
99

10+
# 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.
11+
if [ $# = 0 ] && [ -f @TERMUX_PREFIX@/etc/motd-playstore ] && [ -z "$TERMUX_VERSION" ] && [ "$PATH" = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets" ]; then
12+
printf '\033[0;31m'; cat @TERMUX_PREFIX@/etc/motd-playstore; printf '\033[0m'
13+
fi
14+
1015
if [ -G ~/.termux/shell ]; then
1116
export SHELL="`realpath ~/.termux/shell`"
1217
else

packages/termux-tools/motd-playstore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
You are likely using a very old version of Termux,
3+
probably installed from the Google Play Store.
4+
There are plans in the near future to remove the
5+
Termux apps from the Play Store so that new users
6+
cannot install them and to **disable** them for
7+
existing users with app updates to prevent the use
8+
of outdated app versions. Instead, you are
9+
encouraged to move to F-Droid or Github sources
10+
(see [1]). You can backup all your current Termux
11+
data before uninstallation and then restore it later
12+
by following instructions in the wiki [2]. Check
13+
the changelog [3] for all the new features and fixes
14+
that you are currently missing. Check [4] for why
15+
this is being done.
16+
17+
[1] https://github.com/termux/termux-app#installation
18+
[2] https://wiki.termux.com/wiki/Backing_up_Termux
19+
[3] https://github.com/termux/termux-app/releases
20+
[4] https://github.com/termux/termux-app#google-play-store-deprecated
21+

0 commit comments

Comments
 (0)