upstream_base_url = http://www.bzip.org/$(OPK_SOURCE_VERSION_UPSTREAM) upstream_url = $(upstream_base_url)/$(upstream_archive) upstream_archive = bzip2-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz source_archive = ../bzip2-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz # For 1.0.6: md5sum = 00b516f4704d4a7cb50a1d97e6e8e15b $(source_archive): wget -c '$(upstream_url)' printf '$(md5sum) $(upstream_archive)' | md5sum -c - mv '$(upstream_archive)' '$(source_archive)' source: $(source_archive)