| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | %: |
| 4 | dh $@ --with python3 |
| 5 | |
| 6 | DESTDIR = $(CURDIR)/debian/kuttypy-gui |
| 7 | |
| 8 | override_dh_python3: |
| 9 | dh_python3 -p kuttypy-gui /usr/share/kuttypy |
| 10 | |
| 11 | override_dh_install: |
| 12 | dh_install |
| 13 | chmod -x $(DESTDIR)/usr/share/kuttypy/KuttyPyGUI.py |
| 14 | #remove compiled files from the package |
| 15 | for f in $$(find $(DESTDIR)/usr/share/kuttypy/examples); do \ |
| 16 | if file "$$f" | grep -q ELF; then \ |
| 17 | rm $$f; \ |
| 18 | fi; \ |
| 19 | done |