summaryrefslogtreecommitdiffstats
path: root/debian/wheezy/dependencies/qt3
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-12-11 03:02:18 +0100
committerSlávek Banko <slavek.banko@axis.cz>2012-12-11 03:23:05 +0100
commite12b7beacb145e0359e66ec5d4cfc0494d3ca908 (patch)
treee86872f1a89da47dcecfbec08d7d2d9749d8cf38 /debian/wheezy/dependencies/qt3
parentcbad8f3b74c7eae27da2e4fac11b736a879e2f47 (diff)
downloadtde-packaging-e12b7beacb145e0359e66ec5d4cfc0494d3ca908.tar.gz
tde-packaging-e12b7beacb145e0359e66ec5d4cfc0494d3ca908.zip
Use xz (or bzip2) compression for Debian and Ubuntu binary packages
Diffstat (limited to 'debian/wheezy/dependencies/qt3')
-rwxr-xr-xdebian/wheezy/dependencies/qt3/debian/rules7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/wheezy/dependencies/qt3/debian/rules b/debian/wheezy/dependencies/qt3/debian/rules
index b678d312d..7ede42ad9 100755
--- a/debian/wheezy/dependencies/qt3/debian/rules
+++ b/debian/wheezy/dependencies/qt3/debian/rules
@@ -11,6 +11,9 @@ export LD_LIBRARY_PATH=$(QTDIR)/lib:$(OLD_LD_LIBRARY_PATH)
OLD_PATH := $(PATH)
export PATH=$(QTDIR)/bin:$(OLD_PATH)
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
@@ -327,7 +330,7 @@ binary-indep: build install
dh_gencontrol -i
dh_md5sums -i
- dh_builddeb -i
+ dh_builddeb -i $(DEB_DH_BUILDDEB_ARGS)
binary-arch: build install
@@ -469,7 +472,7 @@ binary-arch: build install
dh_gencontrol -a $(IBASE)
dh_md5sums -a $(IBASE)
- dh_builddeb -a $(IBASE)
+ dh_builddeb -a $(IBASE) $(DEB_DH_BUILDDEB_ARGS)
binary: binary-indep binary-arch
.PHONY: build binary-indep binary-arch binary install clean patch unpatch