diff options
-rw-r--r-- | source.mk | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -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) |