File: rules

package info (click to toggle)
kuttypy 2.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,484 kB
  • sloc: ansic: 4,893; python: 2,834; makefile: 97; xml: 67; sh: 1
file content (19 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

%:
	dh $@ --with python3

DESTDIR = $(CURDIR)/debian/kuttypy-gui

override_dh_python3:
	dh_python3 -p kuttypy-gui /usr/share/kuttypy

override_dh_install:
	dh_install
	chmod -x $(DESTDIR)/usr/share/kuttypy/KuttyPyGUI.py
	#remove compiled files from the package
	for f in $$(find $(DESTDIR)/usr/share/kuttypy/examples); do \
	  if file "$$f" | grep -q ELF; then \
	    rm $$f; \
	  fi; \
	done