include version number in verify target (issue #228)

This commit is contained in:
Trammell Hudson 2017-07-18 14:03:43 -04:00
parent b550a7f967
commit fcc99eca93
Failed to extract signature

View File

@ -146,13 +146,13 @@ define define_module =
# Fetch and verify the source tar file # Fetch and verify the source tar file
$(packages)/$($1_tar): $(packages)/$($1_tar):
wget -O "$$@" $($1_url) wget -O "$$@" $($1_url)
$(packages)/.$1_verify: $(packages)/$($1_tar) $(packages)/.$1-$($1_version)_verify: $(packages)/$($1_tar)
echo "$($1_hash) $$^" | sha256sum --check - echo "$($1_hash) $$^" | sha256sum --check -
@touch "$$@" @touch "$$@"
# Unpack the tar file and touch the canary so that we know # Unpack the tar file and touch the canary so that we know
# that the files are all present # that the files are all present
$(build)/$($1_dir)/.canary: $(packages)/.$1_verify $(build)/$($1_dir)/.canary: $(packages)/.$1-$($1_version)_verify
tar -xf "$(packages)/$($1_tar)" -C "$(build)" tar -xf "$(packages)/$($1_tar)" -C "$(build)"
if [ -r patches/$1-$($1_version).patch ]; then \ if [ -r patches/$1-$($1_version).patch ]; then \
( cd $(build)/$($1_dir) ; patch -p1 ) \ ( cd $(build)/$($1_dir) ; patch -p1 ) \