r14628 - in packages/trunk/dnt/debian: . source
Vincent Prat
vivicoder-guest at alioth.debian.org
Sun Oct 6 20:43:00 UTC 2013
Author: vivicoder-guest
Date: 2013-10-06 20:43:00 +0000 (Sun, 06 Oct 2013)
New Revision: 14628
Modified:
packages/trunk/dnt/debian/rules
packages/trunk/dnt/debian/source/options
Log:
get-orig-source rule added
Modified: packages/trunk/dnt/debian/rules
===================================================================
--- packages/trunk/dnt/debian/rules 2013-10-06 14:41:37 UTC (rev 14627)
+++ packages/trunk/dnt/debian/rules 2013-10-06 20:43:00 UTC (rev 14628)
@@ -30,10 +30,29 @@
rm $(DATA_DIR)/texturas/floor_outdoor/ofslayer/license.txt
rm $(DATA_DIR)/texturas/roads/streetlines/license.txt
rm $(DATA_DIR)/texturas/wall/license.txt
- # removing extra font files
- rm -r $(DATA_DIR)/fnt/
# removing empty directories
rmdir $(DATA_DIR)/models/natural/matos
rmdir $(DATA_DIR)/sndfx/natural
#default install
dh_install
+
+PKG = dnt
+VER = 0.10
+TARDIR = $(PKG)-$(VER)
+
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(VER).orig.tar.xz
+
+$(PKG)_$(VER).orig.tar.xz:
+ @echo "# Downloading..."
+ uscan --noconf --verbose --rename --destdir=$(CURDIR) --force-download --download-current-version
+ $(if $(wildcard $(TARDIR)),$(error $(TARDIR) exist, aborting..))
+ @echo "# Extracting..."
+ mkdir $(TARDIR)
+ tar -xf $(PKG)_$(VER).orig.tar.* --directory $(TARDIR) --strip-components 1
+ @echo "# Cleaning-up..."
+ # removing extra font files
+ $(RM) -r $(TARDIR)/data/fnt/
+ @echo "# Packing..."
+ XZ_OPT="-9v" tar -caf $(PKG)_$(VER).orig.tar.xz $(TARDIR)
+ $(RM) -r $(TARDIR)
Modified: packages/trunk/dnt/debian/source/options
===================================================================
--- packages/trunk/dnt/debian/source/options 2013-10-06 14:41:37 UTC (rev 14627)
+++ packages/trunk/dnt/debian/source/options 2013-10-06 20:43:00 UTC (rev 14628)
@@ -1,5 +1,3 @@
# Bzip2 compression for debian.tar
-compression = "bzip2"
-compression-level = 7
-# Do not generate diff for changes in config.(sub|guess)
-extend-diff-ignore = "(^|/)config.(sub|guess)$"
+compression = "xz"
+compression-level = 9
More information about the Pkg-games-commits
mailing list