upstream_archive = pcre-$(OPK_SOURCE_VERSION_UPSTREAM).zip upstream_base_url = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre upstream_url = $(upstream_base_url)/$(upstream_archive) source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz keys = '45F6 8D54 BBE2 3FB3 039B 46E5 9766 E084 FB0F 43D8' $(source_archive): wget -c '$(upstream_url)' set -e; if gpg --version >/dev/null 2>&1; then \ wget -c '$(upstream_url).sig'; \ [ -e ../keyring.gpg ] || \ gpg --keyring ../keyring.gpg --no-default-keyring \ --recv-keys $(keys) || true; \ rm -f ../keyring.gpg~; \ gpg --verify --keyring ../keyring.gpg \ '$(upstream_archive).sig'; \ fi unzip '$(upstream_archive)' >/dev/null rm '$(upstream_archive)' '$(upstream_archive).sig' tar -czf '$(source_archive)' 'pcre-$(OPK_SOURCE_VERSION_UPSTREAM)' mv 'pcre-$(OPK_SOURCE_VERSION_UPSTREAM)' 'src' source: $(source_archive)