Added new repo/mirror (#6821)
This commit is contained in:
parent
08bcc88e4b
commit
e63d89bdc1
@ -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.119
|
||||
TERMUX_PKG_VERSION=0.120
|
||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
TERMUX_PKG_ESSENTIAL=true
|
||||
|
@ -73,10 +73,11 @@ select_mirror() {
|
||||
|
||||
declare -A mirrors
|
||||
mirrors[30]="$main_repo"
|
||||
mirrors[20]="https://10.via0.com/ipns/k51qzi5uqu5dg9vawh923wejqffxiu9bhqlze5f508msk0h7ylpac27fdgaskx"
|
||||
mirrors[19]="https://ipfs.io/ipns/k51qzi5uqu5dg9vawh923wejqffxiu9bhqlze5f508msk0h7ylpac27fdgaskx"
|
||||
mirrors[18]="https://termux.mentality.rip/termux-packages-24"
|
||||
mirrors[13]="https://grimler.se/termux-packages-24"
|
||||
mirrors[19]="https://10.via0.com/ipns/k51qzi5uqu5dg9vawh923wejqffxiu9bhqlze5f508msk0h7ylpac27fdgaskx"
|
||||
mirrors[18]="https://ipfs.io/ipns/k51qzi5uqu5dg9vawh923wejqffxiu9bhqlze5f508msk0h7ylpac27fdgaskx"
|
||||
mirrors[16]="https://termux.mentality.rip/termux-packages-24"
|
||||
mirrors[12]="https://grimler.se/termux-packages-24"
|
||||
mirrors[5]="https://dl.kcubeterm.me/termux-packages-24"
|
||||
|
||||
local current_mirror
|
||||
current_mirror=$(grep -P "^\s*deb\s+" @TERMUX_PREFIX@/etc/apt/sources.list | grep -oP 'https?://[^\s]+')
|
||||
|
@ -62,6 +62,15 @@ select_repository() {
|
||||
UNSTABLE="https://mirrors.bfsu.edu.cn/termux/unstable-packages/"
|
||||
X11="https://mirrors.bfsu.edu.cn/termux/x11-packages"
|
||||
|
||||
elif [ "$1" == "Mirrors by Kcubeterm" ]; then
|
||||
echo "[*] Kcubeterm's mirrors selected"
|
||||
MAIN="https://dl.kcubeterm.me/termux-packages-24"
|
||||
GAME="https://dl.kcubeterm.me/game-packages-24"
|
||||
ROOT="https://dl.kcubeterm.me/termux-root-packages-24"
|
||||
SCIENCE="https://dl.kcubeterm.me/science-packages-24"
|
||||
UNSTABLE="https://dl.kcubeterm.me/unstable-packages"
|
||||
X11="https://dl.kcubeterm.me/x11-packages"
|
||||
|
||||
else
|
||||
echo "[!] Error: unknown repository: '$1'. Exiting"
|
||||
exit 1
|
||||
@ -123,6 +132,7 @@ dialog \
|
||||
"Mirrors by Xeffyr" "Hosted on IPFS" 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 Kcubeterm" "Hosted on dl.kcubeterm.me" off \
|
||||
2> "$TEMPFILE"
|
||||
|
||||
retval=$?
|
||||
|
Loading…
Reference in New Issue
Block a user