[SCM] lv2fil/master: debian/rules: Add get-orig-source.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue Jan 10 12:59:34 UTC 2012


The following commit has been merged in the master branch:
commit 89bacb6315e6cf8fdf1fa427e7a6a7794d3fa9a7
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue Jan 10 13:59:00 2012 +0100

    debian/rules: Add get-orig-source.

diff --git a/debian/rules b/debian/rules
index 7aebdc4..9f998f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,10 @@
 
 WAF = ./waf
 
+upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: (.*)-.*$$/\1/p' | sed 's/.dfsg[0-9]*//')
+dfsg_version = $(upstream_version)+dfsg0
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+
 %:
 	dh $@
 
@@ -22,3 +26,13 @@ override_dh_auto_install:
 
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS
+
+get-orig-source:
+	uscan --noconf --force-download --rename --repack \
+		--download-current-version --destdir=.
+	tar -xzf $(pkg)_$(upstream_version).orig.tar.gz
+	mv $(pkg)-$(upstream_version) $(pkg)-$(dfsg_version)
+	cd $(pkg)-$(dfsg_version) && ../debian/unpack_waf.sh && cd ..
+	GZIP="-9fn --rsyncable" tar -czf $(pkg)_$(dfsg_version).orig.tar.gz $(pkg)-$(dfsg_version)
+	rm -rf $(pkg)-$(dfsg_version)
+	rm -f $(pkg)_$(upstream_version).orig.tar.gz

-- 
lv2fil packaging



More information about the pkg-multimedia-commits mailing list