Patch (untested) based on the hints by Aaron.
(I would also remove the CURDIR thing, it's not required).
BTW: Please consider uploading in source-only form (dpkg-buildpackage -S).
It's always a good thing to have official build logs here:
https://buildd.debian.org/status/package.php?p=kicad
Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -112,12 +112,15 @@ override_dh_install:
dh_install
dh_python2
-override_dh_fixperms:
+override_dh_fixperms-arch:
dh_fixperms
# most of those file are included from somethere and have no shebang
# like a #! sequence, removing execution rights ...
chmod -x
$(CURDIR)/debian/kicad-common/usr/share/kicad/scripting/plugins/*.py
# ... except this file which has a #! sequence
chmod +x
$(CURDIR)/debian/kicad-common/usr/share/kicad/scripting/plugins/touch_slider_wizard.py
+
+override_dh_strip-arch:
+ dh_strip
# strip unneeded symbols from the kicad specific libraries in
/usr/lib/kicad/
strip --strip-unneeded --remove-section=.comment
$(CURDIR)/debian/kicad/usr/lib/kicad/_*.kiface