File: rules

package info (click to toggle)
gaupol 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,776 kB
  • sloc: python: 18,340; sh: 79; makefile: 32
file content (28 lines) | stat: -rwxr-xr-x 920 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

%:
	dh $@ --with python3 --without python-support

override_dh_auto_install:
	python3 ./setup.py --without-aeidon --without-iso-codes clean install\
	  --root=$(CURDIR)/debian/gaupol --prefix=/usr\
       	  --install-lib=/usr/share/gaupol/
	# rename the binary instead of using --install-scripts (due to name conflict)
	mv $(CURDIR)/debian/gaupol/usr/bin/gaupol $(CURDIR)/debian/gaupol/usr/share/gaupol/run
	dh_link /usr/share/gaupol/run /usr/bin/gaupol
	python3 ./setup.py --with-aeidon --without-gaupol --without-iso-codes\
	  clean install --prefix=/usr --root=$(CURDIR)/debian/python3-aeidon

override_dh_installchangelogs:
	dh_installchangelogs NEWS.md

override_dh_auto_build:

override_dh_auto_clean:
	dh_clean
	rm -rf build/ locale/
	find . -name '*.pyc' -delete
	find data/ -name '*.in' -print | sed -e 's/.in$$//' | xargs rm -f

override_dh_python3:
	dh_python3 --shebang /usr/bin/python3