summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/source.mk b/source.mk
index c18a78c..a9117a3 100644
--- a/source.mk
+++ b/source.mk
@@ -1 +1,21 @@
-# Removed until upstream makes a new release
+upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz
+upstream_url = http://ftp.gnu.org/gnu/$(OPK_SOURCE)/$(upstream_archive)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
+keys = \
+ '6CEF 9231 D6BF 2594 FABA 779E F7E8 72FE B971 54D3' \
+ '7768 CE4B 75E5 236F 1A37 4CEE C4C9 27CD 5D1B 36D7' \
+ '155D 3FC5 00C8 3448 6D1E EA67 7FD9 FCCB 000B EEEE'
+
+$(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; \
+ gpg --verify --keyring ../keyring.gpg \
+ '$(upstream_archive).sig'; \
+ fi
+ mv '$(upstream_archive)' '$(source_archive)'
+
+source: $(source_archive)