blob: 73588a61948092049aebd89557fa7a619de0b08c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
upstream_version = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
sed 's/~/-/')
upstream_archive = opkbuild-$(upstream_version).tar.bz2
upstream_dir_url = http://files.proteanos.com/pub/opkbuild/$(upstream_version)
upstream_url = $(upstream_dir_url)/$(upstream_archive)
upstream_sum = $(upstream_dir_url)/SHA256SUMS
source_archive = ../opkbuild-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2
$(source_archive):
wget "$(upstream_url)"
wget -O - "$(upstream_sum)" | grep -F "$(upstream_archive)" >SHA256SUMS
sha256sum -c SHA256SUMS
rm -f SHA256SUMS
mv "$(upstream_archive)" "$(source_archive)"
source: $(source_archive)
|