termux-tools: update mirror list for termux-change-repo

This commit is contained in:
Leonid Pliushch 2021-06-14 22:25:24 +03:00
parent f3ec1adc2b
commit ceaf09d804
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 11 additions and 1 deletions

View File

@ -2,7 +2,7 @@ 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.125
TERMUX_PKG_VERSION=0.126
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -71,6 +71,15 @@ select_repository() {
UNSTABLE="https://mirrors.bfsu.edu.cn/termux/unstable-packages/"
X11="https://mirrors.bfsu.edu.cn/termux/x11-packages"
elif [ "$1" == "Mirrors by USTC" ]; then
echo "[*] USTC mirrors selected"
MAIN="https://mirrors.ustc.edu.cn/termux/apt/termux-main"
GAME="https://mirrors.ustc.edu.cn/termux/apt/termux-games"
ROOT="https://mirrors.ustc.edu.cn/termux/apt/termux-root"
SCIENCE="https://mirrors.ustc.edu.cn/termux/apt/termux-science"
UNSTABLE="https://mirrors.ustc.edu.cn/termux/apt/termux-unstable"
X11="https://mirrors.ustc.edu.cn/termux/apt/termux-x11"
else
echo "[!] Error: unknown repository: '$1'. Exiting"
exit 1
@ -133,6 +142,7 @@ dialog \
"Mirrors by Xeffyr" "Hosted on IPFS" off \
"Mirrors by Tsinghua University" "Hosted on mirrors.tuna.tsinghua.edu.cn" off \
"Mirrors by BFSU" "Hosted on mirrors.bfsu.edu.cn" off \
"Mirrors by USTC" "Hosted on mirrors.ustc.edu.cn" off \
2> "$TEMPFILE"
retval=$?