[Pkg-javascript-commits] [SCM] Simple bindings to create a webkit window for Node.js branch, master, updated. debian/0.1.2-1-5-ga3902ab

David Paleino dapal at debian.org
Tue Apr 10 21:27:24 UTC 2012


The following commit has been merged in the master branch:
commit 45957651677e2053799c08ed3dc26d116bd5f352
Author: David Paleino <dapal at debian.org>
Date:   Tue Apr 10 23:09:43 2012 +0200

    Strip sampleapp/ from the original tarball, since it contains minified sources for which no uncompressed form is provided (and not all of them are available in Debian)

diff --git a/debian/changelog b/debian/changelog
index 8a6c5b6..5d12e49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+node-topcube (0.1.2-2) UNRELEASED; urgency=low
+
+  * Strip sampleapp/ from the original tarball, since it contains
+    minified sources for which no uncompressed form is provided
+    (and not all of them are available in Debian)
+
+ -- David Paleino <dapal at debian.org>  Tue, 10 Apr 2012 23:08:46 +0200
+
 node-topcube (0.1.2-1) unstable; urgency=low
 
   * Initial release
diff --git a/debian/rules b/debian/rules
index 218df65..46d43fe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,23 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+ifndef UPVER
+UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 | cut -d+ -f1)
+endif
+
 %:
 	dh $@
+
+get-orig-source:
+	uscan \
+		--verbose \
+		--download-version $(UPVER) \
+		--force-download \
+		--rename \
+		--destdir .
+	tar xf node-topcube_$(UPVER).orig.tar.gz
+	@echo Removing sampleapp/, since it contains minified sources for which \
+		no uncompressed form is provided
+	rm -vrf creationix-topcube-*/sampleapp/
+	tar zcf node-topcube_$(UPVER)+ds1.orig.tar.gz creationix-topcube-*/
+	rm -rf creationix-topcube-*/ node-topcube_$(UPVER).orig.tar.gz
diff --git a/debian/watch b/debian/watch
index 0b4af62..5fd57eb 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,3 @@
 version=3
+opts=dversionmangle=s/\+ds\d// \
 http://githubredir.debian.net/github/creationix/topcube/v(\d+.*)\.tar\.gz

-- 
Simple bindings to create a webkit window for Node.js



More information about the Pkg-javascript-commits mailing list