termux-tools: add NJU mirrors to termux-change-repo

This commit is contained in:
Leonid Pliushch 2021-08-23 11:11:10 +03:00
parent b4a425c414
commit c6a80e0662
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 11 additions and 2 deletions

View File

@ -2,8 +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.133
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=0.134
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -80,6 +80,15 @@ select_repository() {
UNSTABLE="https://mirrors.bfsu.edu.cn/termux/apt/termux-unstable"
X11="https://mirrors.bfsu.edu.cn/termux/apt/termux-x11"
elif [ "$1" == "Mirrors by NJU" ]; then
echo "[*] NJU mirrors selected"
MAIN="https://mirror.nju.edu.cn/termux/apt/termux-main"
GAME="https://mirror.nju.edu.cn/termux/apt/termux-games"
ROOT="https://mirror.nju.edu.cn/termux/apt/termux-root"
SCIENCE="https://mirror.nju.edu.cn/termux/apt/termux-science"
UNSTABLE="https://mirror.nju.edu.cn/termux/apt/termux-unstable"
X11="https://mirror.nju.edu.cn/termux/apt/termux-x11"
elif [ "$1" == "Mirrors by USTC" ]; then
echo "[*] USTC mirrors selected"
MAIN="https://mirrors.ustc.edu.cn/termux/apt/termux-main"
@ -152,6 +161,7 @@ dialog \
"Mirrors by Librehat" "Hosted on termux.librehat.com" 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 NJU" "Hosted on mirror.nju.edu.cn" off \
"Mirrors by USTC" "Hosted on mirrors.ustc.edu.cn" off \
2> "$TEMPFILE"