summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/source.mk b/source.mk
index 8abd03f..3b074df 100644
--- a/source.mk
+++ b/source.mk
@@ -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)