summaryrefslogtreecommitdiffstats
path: root/ubuntu/precise/tdeedu/debian
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/precise/tdeedu/debian')
-rwxr-xr-xubuntu/precise/tdeedu/debian/rules3
-rw-r--r--ubuntu/precise/tdeedu/debian/source/options4
2 files changed, 5 insertions, 2 deletions
diff --git a/ubuntu/precise/tdeedu/debian/rules b/ubuntu/precise/tdeedu/debian/rules
index d1258cdf0..9f81df4c0 100755
--- a/ubuntu/precise/tdeedu/debian/rules
+++ b/ubuntu/precise/tdeedu/debian/rules
@@ -16,6 +16,9 @@ DEB_DH_INSTALL_SOURCEDIR := $(DEB_DESTDIR)
DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinity/lib --includedir="/opt/trinity/include/tde" --mandir="/opt/trinity/share/man" --infodir="/opt/trinity/share/info"
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
# Ensure that kig's python scripting built successfully.
common-build-arch::
test -e $(DEB_BUILDDIR)/kig/scripting/libscripting.la
diff --git a/ubuntu/precise/tdeedu/debian/source/options b/ubuntu/precise/tdeedu/debian/source/options
index 9d7c8e036..72f1f5450 100644
--- a/ubuntu/precise/tdeedu/debian/source/options
+++ b/ubuntu/precise/tdeedu/debian/source/options
@@ -1,5 +1,5 @@
-# Use bzip2 instead of gzip
-compression = "bzip2"
+# Use xz instead of gzip
+compression = "xz"
compression-level = 9
# Don't run differences