File: rules

package info (click to toggle)
deluge 1.3.15-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 20,756 kB
  • ctags: 3,121
  • sloc: python: 22,201; sh: 141; makefile: 22
file content (29 lines) | stat: -rwxr-xr-x 713 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
27
28
29
#!/usr/bin/make -f

ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
	SUBSTVARS = -Vdist:Recommends="python-appindicator"
endif

%:
	dh $@ --with python2

override_dh_auto_build:
	python setup.py build

override_dh_auto_install:
	python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
	set -ex; \
	cd debian/tmp/usr/lib/python2.*/*-packages/deluge/plugins/; \
	for egg in *.egg; do \
		mkdir -p $${egg%-py2.*}.egg; \
		unzip $$egg -d $${egg%-py2.*}.egg; \
		rm -f $$egg; \
	done

override_dh_auto_clean:
	dh_auto_clean
	find . -type d -name '*.egg-info' | xargs rm -rf
	rm -f deluge/data/share/applications/deluge.desktop

override_dh_gencontrol:
	dh_gencontrol -- $(SUBSTVARS)