summaryrefslogtreecommitdiffstats
path: root/source.mk
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-12 17:17:04 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-12 17:17:04 (EDT)
commit14475b63adea6cc2cdc5a42141d0121ec0f1aac3 (patch)
tree187606ceb477556f5dba402d4589aa8591d69473 /source.mk
Initial commit
Diffstat (limited to 'source.mk')
-rw-r--r--source.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..7b3729c
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,10 @@
+upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz
+upstream_url = http://www.libarchive.org/downloads/$(upstream_archive)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
+
+$(source_archive):
+ wget -c '$(upstream_url)'
+ printf '$(source_sha256sum) $(upstream_archive)' | sha256sum -c -
+ mv '$(upstream_archive)' '$@'
+
+source: $(source_archive)