diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 21:38:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 21:38:38 +0000 |
commit | 74be7d468396cc599219f8297ce64743c307a34a (patch) | |
tree | 6355a9ba7f5d8d666bae8c0968b8e1caa3571c38 /debian/rules | |
parent | Adding upstream version 2.1.2~dev0+20240219. (diff) | |
download | deluge-74be7d468396cc599219f8297ce64743c307a34a.tar.xz deluge-74be7d468396cc599219f8297ce64743c307a34a.zip |
Adding debian version 2.1.2~dev0+20240219-1.debian/2.1.2_dev0+20240219-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..dc88669 --- /dev/null +++ b/debian/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f + +SHELL := sh -e + +VERSION := $(shell dpkg-parsechangelog -SVersion | sed -e 's|~dev|.dev|' -e 's|+.*||') + +%: + dh ${@} --buildsystem=pybuild --with=python3 + +execute_after_dh_auto_clean: + rm -f RELEASE-VERSION + + # help pybuild + for ITEM in $$(find . -type d -name "*.egg-info" -or -type f -name "*.egg"); \ + do \ + rm -rf "$${ITEM}"; \ + done + + # remove generated files + rm -rf deluge/plugins/*/build + rm -f deluge/ui/web/js/deluge-all-debug.js + rm -f deluge/ui/web/js/extjs/ext-extensions-debug.js + rm -f deluge/ui/web/js/gettext.js + + for file in $$(find . -type f -name "*.in"); \ + do \ + rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \ + done + +execute_before_dh_auto_build: + echo "$(VERSION)" > RELEASE-VERSION + +override_dh_auto_test: + # disabled + +execute_after_dh_auto_install: + # unpacking plugins + 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 + + # removing unused files + find debian/tmp -type d -name '__pycache__' | xargs rm -rf |