From c0c9171f07979141be475e42ff2be4af5730c7f7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 04 Apr 2019 00:23:20 -0400 Subject: Initial commit --- (limited to 'source.mk') diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..5718bec --- /dev/null +++ b/source.mk @@ -0,0 +1,13 @@ +# Reference only -- requires git, not yet in ProteanOS + +upstream_commit = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ + sed 's/^.*~git........\.\([0-9a-f]*\).*$$/\1/') +upstream_git_uri = https://git.openwrt.org/project/$(OPK_SOURCE).git +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.xz + +$(source_archive): + git clone $(upstream_git_uri) $(OPK_SOURCE)/ + (cd $(OPK_SOURCE)/ && git archive --format=tar --prefix=$(OPK_SOURCE)/ \ + "$(upstream_commit)") | xz >$@ + +source: $(source_archive) -- cgit v0.9.1