From e63d89bdc1f02dcd66fc1cd91f85f14c18adf889 Mon Sep 17 00:00:00 2001 From: Krishna Kanhaiya Date: Tue, 18 May 2021 12:26:39 +0530 Subject: [PATCH] Added new repo/mirror (#6821) --- packages/termux-tools/build.sh | 2 +- packages/termux-tools/pkg | 9 +++++---- packages/termux-tools/termux-change-repo | 10 ++++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index 1720ca317..a91499230 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -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 diff --git a/packages/termux-tools/pkg b/packages/termux-tools/pkg index c3a410399..db5cee894 100755 --- a/packages/termux-tools/pkg +++ b/packages/termux-tools/pkg @@ -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]+') diff --git a/packages/termux-tools/termux-change-repo b/packages/termux-tools/termux-change-repo index d10fc50d2..e2130dbd6 100755 --- a/packages/termux-tools/termux-change-repo +++ b/packages/termux-tools/termux-change-repo @@ -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=$?