[med-svn] r7503 - trunk/packages/gofigure2/trunk/debian

Mathieu Malaterre malat-guest at alioth.debian.org
Fri Aug 19 17:22:05 UTC 2011


Author: malat-guest
Date: 2011-08-19 17:22:05 +0000 (Fri, 19 Aug 2011)
New Revision: 7503

Modified:
   trunk/packages/gofigure2/trunk/debian/rules
Log:
squeeze some bits

Modified: trunk/packages/gofigure2/trunk/debian/rules
===================================================================
--- trunk/packages/gofigure2/trunk/debian/rules	2011-08-19 17:06:11 UTC (rev 7502)
+++ trunk/packages/gofigure2/trunk/debian/rules	2011-08-19 17:22:05 UTC (rev 7503)
@@ -12,5 +12,19 @@
 override_dh_shlibdeps:
 	LD_LIBRARY_PATH=debian/gofigure2/usr/lib/gofigure2 dh_shlibdeps -l/usr/lib/gofigure2
 
-get-orig-source:
-	uscan --verbose --force-download --repack --rename
+VER_FULL = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)
+UPSTREAM_SRC = GoFigure2-v$(VER_FULL).tar.gz
+DEBIAN_SRC_DIR = GoFigure2-v$(VER_FULL)
+DEBIAN_SRC_TAR = gofigure2_$(VER_FULL).orig.tar.gz
+
+$(UPSTREAM_SRC):
+	wget http://voxel.dl.sourceforge.net/sourceforge/gofigure2/$@
+
+get-orig-source: $(UPSTREAM_SRC)
+	#uscan --verbose --force-download --repack --rename
+	tar xzf $(UPSTREAM_SRC)
+	# save some disk space, removing test data:
+	rm -rf $(DEBIAN_SRC_DIR)/Testing/Data
+	rm -rf $(DEBIAN_SRC_DIR)/Testing/Sikuli
+	GZIP="--best --no-name" tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR)
+	rm -rf $(DEBIAN_SRC_DIR)




More information about the debian-med-commit mailing list