From 8e6249f1bdbd9af59b854bcb70e41fe62838bde1 Mon Sep 17 00:00:00 2001 From: Zoey Mertes Date: Tue, 29 Mar 2022 13:30:03 -0400 Subject: [PATCH] termux-tools: Add Purdue LUG mirror (#9553) --- packages/termux-tools/build.sh | 2 +- packages/termux-tools/pkg | 15 ++++++++------- packages/termux-tools/termux-change-repo | 7 +++++++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index 2fb71637a..869a13ac2 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -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 diff --git a/packages/termux-tools/pkg b/packages/termux-tools/pkg index bbeef667d..b36313ba7 100755 --- a/packages/termux-tools/pkg +++ b/packages/termux-tools/pkg @@ -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]+') diff --git a/packages/termux-tools/termux-change-repo b/packages/termux-tools/termux-change-repo index 16cd631f4..4d31fd340 100755 --- a/packages/termux-tools/termux-change-repo +++ b/packages/termux-tools/termux-change-repo @@ -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 \