From 6205d4a3a68073b68cbf6ccc75311654f0dda359 Mon Sep 17 00:00:00 2001 From: tuna-mirror-server Date: Fri, 11 Dec 2015 15:07:55 +0800 Subject: [PATCH] add termux script --- scripts/termux.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/termux.sh diff --git a/scripts/termux.sh b/scripts/termux.sh new file mode 100755 index 0000000..9dd1002 --- /dev/null +++ b/scripts/termux.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e + +_here=`dirname $(realpath $0)` +. ${_here}/helpers/apt-download +[ -z "${LOADED_APT_DOWNLOAD}" ] && (echo "failed to load apt-download"; exit 1) + +BASE_PATH="${TUNASYNC_WORKING_DIR}" + +base_url="http://apt.termux.com" +ARCHES=("aarch64" "all" "arm" "i686") +for arch in ${ARCHES[@]}; do + echo "start syncing: ${arch}" + apt-download-binary "${base_url}" "stable" "main" "${arch}" "${BASE_PATH}" || true +done +echo "finished"