File: rules

package info (click to toggle)
gaupol 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,404 kB
  • ctags: 4,403
  • sloc: python: 22,484; xml: 4,694; makefile: 85; sh: 45
file content (20 lines) | stat: -rwxr-xr-x 757 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

%:
	dh $@

#export PYVER=$(shell dpkg --compare-versions `pyversions -vd` gt 2.5 || echo 2.6)
override_dh_auto_install:
	python$(PYVER) ./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
	python$(PYVER) ./setup.py --with-aeidon --without-gaupol --without-iso-codes\
	  clean install --prefix=/usr --root=$(CURDIR)/debian/python-aeidon

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_auto_build: