File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ git config --global --add safe.directory '*'
7777
7878bash -euxo pipefail /source/ci/install-static-desktop-file-validate.sh 0.28
7979bash -euxo pipefail /source/ci/install-static-mksquashfs.sh 4.6.1
80- # bash -euxo pipefail /source/ci/install-static-zsyncmake.sh 0.6.2
80+ bash -euxo pipefail /source/ci/install-static-zsyncmake.sh 0.6.2 0b9d53433387aa4f04634a6c63a5efa8203070f2298af72a705f9be3dda65af2
8181
8282bash -euxo pipefail /source/ci/build.sh
8383
Original file line number Diff line number Diff line change 22
33set -euxo pipefail
44
5- if [[ " ${1 :- } " == " " ]]; then
6- echo " Usage: $0 <version>"
5+ if [[ " ${2 :- } " == " " ]]; then
6+ echo " Usage: $0 <version> <hash> "
77 exit 2
88fi
99
1010version=" $1 "
11+ hash=" $2 "
1112
1213build_dir=" $( mktemp -d -t zsyncmake-build-XXXXXX) "
1314
@@ -20,8 +21,11 @@ trap cleanup EXIT
2021
2122pushd " $build_dir "
2223
23- wget http://zsync.moria.org.uk/download/zsync-" $version " .tar.bz2 -q
24- tar xf zsync-* .tar.bz2
24+ # the original zsync homepage has been shut down apparently, but we can fetch the source code from most distros
25+ wget http://deb.debian.org/debian/pool/main/z/zsync/zsync_" $version " .orig.tar.bz2
26+ echo " ${hash} zsync_${version} .orig.tar.bz2" | sha256sum -c
27+
28+ tar xf zsync_" $version " * .tar.bz2
2529
2630cd zsync-* /
2731
3539 jobs=" $( nproc --ignore=1) "
3640fi
3741
38- make -j" $jobs " install
42+ make -j" $jobs " install
You can’t perform that action at this time.
0 commit comments