From 9fab97aa14a4016a286e028751c74823203aa42d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 21 Jun 2014 22:15:21 -0400 Subject: source.mk: New file. --- diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..1a6eb6d --- /dev/null +++ b/source.mk @@ -0,0 +1,14 @@ +upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz +upstream_dir_url = ftp://sourceware.org/pub/$(OPK_SOURCE) +upstream_url = $(upstream_dir_url)/$(upstream_archive) +upstream_sum = $(upstream_dir_url)/md5.sum +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz + +$(source_archive): + wget -c '$(upstream_url)' + wget -O - '$(upstream_sum)' | grep -F '$(upstream_archive)' >MD5SUMS + md5sum -c MD5SUMS + rm -f MD5SUMS + mv '$(upstream_archive)' '$(source_archive)' + +source: $(source_archive) -- cgit v0.9.1