File: rules

package info (click to toggle)
canto 0.7.10-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 700 kB
  • sloc: python: 6,384; ansic: 281; makefile: 20; sh: 19
file content (26 lines) | stat: -rwxr-xr-x 958 bytes parent folder | download
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
#!/usr/bin/make -f

-include /usr/share/python/python.mk

%:
	dh ${@} --with python2

override_dh_auto_build:
	python setup.py build --force

override_dh_auto_install:
	python setup.py install --root=debian/canto --no-compile $(py_setup_install_args) \
		--install-lib=/usr/lib/canto --install-scripts=/usr/lib/canto/bin
	mv $(CURDIR)/debian/canto//usr/lib/canto/bin/canto \
		$(CURDIR)/debian/canto/usr/lib/canto/canto-bin
	mv $(CURDIR)/debian/canto//usr/lib/canto/bin/canto-fetch \
		$(CURDIR)/debian/canto/usr/lib/canto/canto-fetch
	mv $(CURDIR)/debian/canto//usr/lib/canto/bin/canto-inspect \
		$(CURDIR)/debian/canto/usr/lib/canto/canto-inspect
	rm -rf $(CURDIR)/debian/canto/usr/lib/canto/bin
	rm -rf $(CURDIR)/debian/canto/usr/lib/canto/canto/feedparser_builtin.py

override_dh_link:
	dh_link /usr/lib/canto/canto-bin /usr/bin/canto
	dh_link /usr/lib/canto/canto-fetch /usr/bin/canto-fetch
	dh_link /usr/lib/canto/canto-inspect /usr/bin/canto-inspect