termux-tools: Add Purdue LUG mirror (#9553)

This commit is contained in:
Zoey Mertes 2022-03-29 13:30:03 -04:00 committed by GitHub
parent c7e1f9f10b
commit 8e6249f1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 8 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://termux.org/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.168
TERMUX_PKG_VERSION=0.169
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -73,13 +73,14 @@ select_mirror() {
declare -A mirrors
mirrors[16]="$main_repo"
mirrors[15]="https://dl.kcubeterm.com/termux-main"
mirrors[14]="https://grimler.se/termux-packages-24"
mirrors[13]="https://termux.mentality.rip/termux-main"
mirrors[12]="https://termux.astra.in.ua/apt/termux-main"
mirrors[11]="https://termux.librehat.com/apt/termux-main"
mirrors[10]="https://mirror.mwt.me/termux/main"
mirrors[ 9]="https://termux.sahilister.in/apt/termux-main"
mirrors[14]="https://dl.kcubeterm.com/termux-main"
mirrors[13]="https://grimler.se/termux-packages-24"
mirrors[12]="https://termux.mentality.rip/termux-main"
mirrors[11]="https://termux.astra.in.ua/apt/termux-main"
mirrors[10]="https://termux.librehat.com/apt/termux-main"
mirrors[ 9]="https://mirror.mwt.me/termux/main"
mirrors[ 8]="https://termux.sahilister.in/apt/termux-main"
mirrors[ 7]="https://plug-mirror.rcac.purdue.edu/termux/termux-main"
local current_mirror
current_mirror=$(grep -m 1 -P "^\s*deb\s+" @TERMUX_PREFIX@/etc/apt/sources.list | grep -oP 'https?://[^\s]+')

View File

@ -62,6 +62,12 @@ select_repository() {
ROOT="https://mirror.mwt.me/termux/root"
X11="https://mirror.mwt.me/termux/x11"
elif [ "$1" == "Mirrors by Purdue Linux Users Group" ]; then
echo "[*] Purdue LUG's (USA) mirrors selected"
MAIN="https://plug-mirror.rcac.purdue.edu/termux/termux-main"
ROOT="https://plug-mirror.rcac.purdue.edu/termux/termux-root"
X11="https://plug-mirror.rcac.purdue.edu/termux/termux-x11"
elif [ "$1" == "Mirrors by Sahilister" ]; then
echo "[*] Sahilister's (DE) mirrors selected"
MAIN="https://termux.sahilister.in/apt/termux-main"
@ -150,6 +156,7 @@ dialog \
"Mirrors by Grimler" "Hosted on grimler.se" off \
"Mirrors by Librehat" "Hosted on termux.librehat.com" off \
"Mirrors by Mwt" "Hosted on mirror.mwt.me" off \
"Mirrors by Purdue Linux Users Group" "Hosted on plug-mirror.rcac.purdue.edu" off \
"Mirrors by Sahilister" "Hosted on termux.sahilister.in" off \
"Mirrors by Tsinghua University" "Hosted on mirrors.tuna.tsinghua.edu.cn" off \
"Mirrors by BFSU" "Hosted on mirrors.bfsu.edu.cn" off \