aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3e9ea40
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+#DH_VERBOSE=1
+
+PYTHON3=$(shell py3versions -vr)
+
+%:
+ dh $@ --with=python3,translations --buildsystem=pybuild
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf build *.egg-info po/aptdaemon.pot
+
+# ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+# test-python%:
+# # wait until previous xvfb-run has finished
+# while [ -e /tmp/.X99-lock ]; do sleep 1; done
+# xvfb-run python$* setup.py test -vv
+
+# override_dh_auto_test: $(PYTHON3:%=test-python%)
+# endif
+
+override_dh_auto_test:
+ true