The following commit has been merged in the master branch:
commit cd166e8cc4330f73a002bcf89bb70a17d05301ee
Author: Jérémy Lal <kapo...@melix.org>
Date:   Sun Sep 15 18:52:03 2013 +0200

    get-orig-source target

diff --git a/debian/rules b/debian/rules
index 1fc8d92..39f17ed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,28 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+dfsgVersion := $(shell dpkg-parsechangelog -SVersion | cut -d- -f1)
+upstreamVersion := $(shell echo $(dfsgVersion) | cut -d+ -f1)
+name :=  $(shell dpkg-parsechangelog -SSource)
+tarDir := $(name)-$(upstreamVersion)
+tarName := $(name)_$(dfsgVersion).orig.tar
+
 %:
        dh $@
 
-override_dh_auto_test:
-       #pass
+get-orig-source:
+       mkdir -p ../tarballs
+       uscan \
+               --verbose \
+               --download-version $(upstreamVersion) \
+               --force-download \
+               --destdir ../tarballs \
+               --rename
+       tar xvf ../tarballs/$(name)_$(upstreamVersion).orig.tar.gz
+       @echo Repackaging
+       rm -rf $(tarDir)/test/catch.hpp
+       tar cf $(tarName) $(tarDir)/
+       rm -rf $(tarDir)/
+       gzip -9 $(tarName)
+       mv $(tarName).gz ../tarballs/
+

-- 
Vector tiles integration with mapnik - development files

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to