Skip to content

Commit e4259c3

Browse files
committed
zsync homepage has shut down
1 parent a6f8c0f commit e4259c3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ci/build-in-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ git config --global --add safe.directory '*'
7777
7878
bash -euxo pipefail /source/ci/install-static-desktop-file-validate.sh 0.28
7979
bash -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
8282
bash -euxo pipefail /source/ci/build.sh
8383

ci/install-static-zsyncmake.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
set -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
88
fi
99

1010
version="$1"
11+
hash="$2"
1112

1213
build_dir="$(mktemp -d -t zsyncmake-build-XXXXXX)"
1314

@@ -20,8 +21,11 @@ trap cleanup EXIT
2021

2122
pushd "$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

2630
cd zsync-*/
2731

@@ -35,4 +39,4 @@ else
3539
jobs="$(nproc --ignore=1)"
3640
fi
3741

38-
make -j"$jobs" install
42+
make -j"$jobs" install

0 commit comments

Comments
 (0)