diff options
| author | 2025-02-17 07:34:43 +0100 | |
|---|---|---|
| committer | 2025-02-17 07:34:43 +0100 | |
| commit | d90f010c889dca8f7ea4af5a9f18a213b0cb2510 (patch) | |
| tree | e46d6e8ce16d83ae63907f72e5263b1cee88503a /debian/rules | |
| parent | 806160ed0ccb64868c6d4a3839e0fa2b8e0fb0c1 (diff) | |
Adding debian version 2.0.3-4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f769106 --- /dev/null +++ b/debian/rules @@ -0,0 +1,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) |
