summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-09-09 11:36:59 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-09-09 11:36:59 (EDT)
commitfb21bf411b8e752f772fbbd4e0b713da28bb3a78 (patch)
tree24226e6cae6b98d9ee1cde18117eea4b8b244ee8
parent1cd11ec65e91eb33a3756dbd9618438b4a85810b (diff)
source.mk: New file.
-rwxr-xr-xbuild2
-rw-r--r--source.mk10
2 files changed, 12 insertions, 0 deletions
diff --git a/build b/build
index 3d87170..85394b9 100755
--- a/build
+++ b/build
@@ -1,5 +1,7 @@
#! /usr/bin/make -f
+include ../source.mk
+
build:
oh-autoconfigure
oh-autobuild
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..2f3ed55
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,10 @@
+upstream_archive = fakeroot_$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2
+upstream_mirror = http://ftp.debian.org/debian
+upstream_url = $(upstream_mirror)/pool/main/f/fakeroot/$(upstream_archive)
+source_archive = ../fakeroot-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2
+
+$(source_archive):
+ wget -c '$(upstream_url)'
+ mv '$(upstream_archive)' '$(source_archive)'
+
+source: $(source_archive)