Another Termux Mirror hosted on GH release. (#7034)

* Added another termux mirror
This mirror is hosting on Github release.

* Revised naming convention and sorted alphabetically
This commit is contained in:
Krishna Kanhaiya 2021-06-20 18:24:10 +05:30 committed by GitHub
parent 368a76b9c2
commit ea9e90052c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 4 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.127
TERMUX_PKG_VERSION=0.128
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -72,9 +72,9 @@ select_mirror() {
local main_repo="https://packages.termux.org/apt/termux-main"
declare -A mirrors
mirrors[50]="$main_repo"
mirrors[20]="https://grimler.se/termux-packages-24"
mirrors[16]="https://dl.kcubeterm.me/termux-packages-24"
mirrors[35]="$main_repo"
mirrors[34]="https://deb.kcubeterm.me/termux-main"
mirrors[17]="https://grimler.se/termux-packages-24"
mirrors[14]="https://termux.mentality.rip/termux-main"
local current_mirror

View File

@ -17,6 +17,15 @@ select_repository() {
UNSTABLE="https://packages.termux.org/apt/termux-unstable"
X11="https://packages.termux.org/apt/termux-x11"
elif [ "$1" == "GH Mirrors by Kcubeterm" ]; then
echo "[*] GH mirrors selected"
MAIN="https://deb.kcubeterm.me/termux-main"
GAME="https://deb.kcubeterm.me/termux-games"
ROOT="https://deb.kcubeterm.me/termux-root"
SCIENCE="https://deb.kcubeterm.me/termux-science"
UNSTABLE="https://deb.kcubeterm.me/termux-unstable"
X11="https://deb.kcubeterm.me/termux-x11"
elif [ "$1" == "Mirrors by A1batross" ]; then
echo "[*] A1batross's mirrors selected"
MAIN="https://termux.mentality.rip/termux-main"
@ -127,6 +136,7 @@ dialog \
--title "termux-change-repo" --clear \
--radiolist "Which mirror do you want to use?" 0 0 0 \
"Default repositories" "The default package hosting" on \
"GH Mirrors by Kcubeterm" "Hosted on Github Release" off \
"Mirrors by A1batross" "Hosted on termux.mentality.rip" off \
"Mirrors by Grimler" "Hosted on grimler.se" off \
"Mirrors by Kcubeterm" "Hosted on dl.kcubeterm.me" off \