From 11be84612f154ec965f756debab5ffc44dd5ca11 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sun, 20 Jan 2019 17:52:47 +0100 Subject: [PATCH] build-package.sh: add sha256sum's for bootstrap zips for all arches --- build-package.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build-package.sh b/build-package.sh index 55e4cad2c..2f736460c 100755 --- a/build-package.sh +++ b/build-package.sh @@ -504,9 +504,18 @@ termux_step_get_repo_files() { "$TERMUX_PKG_MASSAGEDIR" \ $TERMUX_PREFIX/{bin,etc,lib,libexec,share,tmp,include} # Setup bootstrap + if [ $TERMUX_ARCH == aarch64 ]; then + local bootstrap_sha256=9f43bfdd23fbc6ae02f1f5a44b8e064374db8291ffe32658e2724d3f3f419981 + elif [ $TERMUX_ARCH == i686 ]; then + local bootstrap_sha256=4f30d49f8bdb9a294d6e4e0dea6b5cb7b5cd74163531a04659d043b49dc08737 + elif [ $TERMUX_ARCH == arm ]; then + local bootstrap_sha256=2be38e07f93ca3f960ccb5554e67d0860e921b283ccba0aab5527a53b9e97b10 + elif [ $TERMUX_ARCH == x86_64 ]; then + local bootstrap_sha256=71b334dd3901b8f9c2a8905208912419963700f93b5b7cd68213010d05a662a7 + fi termux_download https://termux.net/bootstrap/bootstrap-${TERMUX_ARCH}.zip \ ${TERMUX_COMMON_CACHEDIR}/bootstrap-${TERMUX_ARCH}.zip \ - 9f43bfdd23fbc6ae02f1f5a44b8e064374db8291ffe32658e2724d3f3f419981 + $bootstrap_sha256 unzip -qo ${TERMUX_COMMON_CACHEDIR}/bootstrap-${TERMUX_ARCH}.zip -d $TERMUX_PREFIX ( cd $TERMUX_PREFIX