aboutsummaryrefslogtreecommitdiffstats
path: root/dists/debian/rules
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2017-08-29 09:23:20 +0200
committerPetter Reinholdtsen <pere@hungry.com>2017-08-29 09:23:20 +0200
commit5887f76c524ad4878e12b52b7e09d58c503cea50 (patch)
tree95c13de2d17bc7133008c163e5b4e4c2a4264598 /dists/debian/rules
parentd65671eacb3cf6f62196ab0e7a3751e783e5c644 (diff)
Move debian/ directory to dists/ to avoid conflict with official Debian packaging.
Diffstat (limited to 'dists/debian/rules')
-rwxr-xr-xdists/debian/rules15
1 files changed, 15 insertions, 0 deletions
diff --git a/dists/debian/rules b/dists/debian/rules
new file mode 100755
index 0000000..cb59406
--- /dev/null
+++ b/dists/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+export DEB_HOST_MULTIARCH
+
+%:
+ dh $@ --with python2 --parallel
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DPythonLibs_FIND_VERSION:STRING="2.7" -DPYTHON_EXECUTABLE:STRING="/usr/bin/python"
+
+override_dh_auto_install:
+ dh_auto_install
+ rm -f debian/gr-gsm/usr/lib/python2.7/dist-packages/grgsm/*pyc
+ rm -f debian/gr-gsm/usr/lib/python2.7/dist-packages/grgsm/*pyo
+