File: rules

package info (click to toggle)
deluge 2.0.3-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 20,556 kB
  • sloc: javascript: 65,606; python: 42,993; sh: 115; makefile: 23
file content (29 lines) | stat: -rwxr-xr-x 802 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
29
#!/usr/bin/make -f
export PYBUILD_DISABLE=test

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	python3 setup.py build

override_dh_auto_install:
	python3 setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
	set -ex; \
	cd debian/tmp/usr/lib/python*/*-packages/deluge/plugins/; \
	for egg in *.egg; do \
		mkdir -p $${egg%-py?.*}.egg; \
		unzip $$egg -d $${egg%-py?.*}.egg; \
		rm -f $$egg; \
	done
	find . -type d -name '__pycache__' | xargs rm -rf

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

override_dh_gencontrol:
	dh_gencontrol -- $(SUBSTVARS)