summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-09-15 14:15:03 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-09-15 14:15:03 (EDT)
commitedb15222cf711e078e69cee48c0549686be82298 (patch)
tree42c3db91360ff5e6afe9f6eebd556a49715c1614
parentfc6fdc0feaa9bc506c4546b881674d94a9ad3f3b (diff)
source.mk: Rewrite to use tar archives.
-rw-r--r--source.mk16
1 files changed, 5 insertions, 11 deletions
diff --git a/source.mk b/source.mk
index 7ab32a5..9888310 100644
--- a/source.mk
+++ b/source.mk
@@ -1,15 +1,9 @@
-upstream_svn_branch = trunk
-upstream_svn_uri = http://opkg.googlecode.com/svn/$(upstream_svn_branch)/
-upstream_svn_rev = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
- sed 's/^.*~r\(.*\)$$/\1/')
-source = opkg-$(OPK_SOURCE_VERSION_UPSTREAM)
-source_archive = ../$(source).orig.tar.bz2
+upstream_archive = opkg-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz
+upstream_url = http://opkg.googlecode.com/files/$(upstream_archive)
+source_archive = ../opkg-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
$(source_archive):
- svn export -r "$(upstream_svn_rev)" '$(upstream_svn_uri)' '$(source)'
- autoreconf -v -i '$(source)'
- tar -cjf '$(source_archive)' '$(source)'
- rm -Rf src
- mv '$(source)' src
+ wget -c '$(upstream_url)'
+ mv '$(upstream_archive)' '$(source_archive)'
source: $(source_archive)