termux-tools: add mirror termux.librehat.com (#7052)
This commit is contained in:
parent
d1199c038a
commit
8da081c823
@ -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.128
|
||||
TERMUX_PKG_VERSION=0.129
|
||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
TERMUX_PKG_ESSENTIAL=true
|
||||
|
@ -73,9 +73,10 @@ select_mirror() {
|
||||
|
||||
declare -A mirrors
|
||||
mirrors[35]="$main_repo"
|
||||
mirrors[34]="https://deb.kcubeterm.me/termux-main"
|
||||
mirrors[18]="https://deb.kcubeterm.me/termux-main"
|
||||
mirrors[17]="https://grimler.se/termux-packages-24"
|
||||
mirrors[14]="https://termux.mentality.rip/termux-main"
|
||||
mirrors[16]="https://termux.mentality.rip/termux-main"
|
||||
mirrors[14]="https://termux.librehat.com/apt/termux-main"
|
||||
|
||||
local current_mirror
|
||||
current_mirror=$(grep -m 1 -P "^\s*deb\s+" @TERMUX_PREFIX@/etc/apt/sources.list | grep -oP 'https?://[^\s]+')
|
||||
|
@ -53,6 +53,15 @@ select_repository() {
|
||||
UNSTABLE="https://dl.kcubeterm.me/unstable-packages"
|
||||
X11="https://dl.kcubeterm.me/x11-packages"
|
||||
|
||||
elif [ "$1" == "Mirrors by Librehat" ]; then
|
||||
echo "[*] Librehat's mirrors selected"
|
||||
MAIN="https://termux.librehat.com/apt/termux-main"
|
||||
GAME="https://termux.librehat.com/apt/termux-games"
|
||||
ROOT="https://termux.librehat.com/apt/termux-root"
|
||||
SCIENCE="https://termux.librehat.com/apt/termux-science"
|
||||
UNSTABLE="https://termux.librehat.com/apt/termux-unstable"
|
||||
X11="https://termux.librehat.com/apt/termux-x11"
|
||||
|
||||
elif [ "$1" == "Mirrors by Tsinghua University" ]; then
|
||||
echo "[*] Tsinghua's mirrors selected"
|
||||
MAIN="https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24/"
|
||||
@ -140,6 +149,7 @@ dialog \
|
||||
"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 \
|
||||
"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 USTC" "Hosted on mirrors.ustc.edu.cn" off \
|
||||
|
Loading…
Reference in New Issue
Block a user