diff options
-rw-r--r-- | source.mk | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,13 +1,16 @@ upstream_svn_uri = svn://flashrom.org/flashrom/trunk upstream_svn_rev = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ sed 's/^.*[~+]r\([0-9][0-9]*\).*$$/\1/') +upstream_releasename = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ + sed 's/[~+]r/-r/') source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2 $(source_archive): - svn export -r "$(upstream_svn_rev)" "$(upstream_svn_uri)" \ - '$(OPK_SOURCE)' - tar -cjf '$(@)' '$(OPK_SOURCE)' + svn co -r "$(upstream_svn_rev)" "$(upstream_svn_uri)" flashrom + (cd flashrom && make export) + (cd flashrom && tar -cjf '../$(@)' "flashrom-$(upstream_releasename)") rm -Rf src - mv '$(OPK_SOURCE)' src + mv "flashrom/flashrom-$(upstream_releasename)" src + rm -Rf flashrom source: $(source_archive) |