From 9e23ee4daa1037da52b0076f59537c12c9618c52 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 24 Jun 2023 19:48:16 +0200 Subject: Updating packaging for new upstream version. Signed-off-by: Daniel Baumann --- debian/rules | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 846c76e..8f33b31 100755 --- a/debian/rules +++ b/debian/rules @@ -2,25 +2,22 @@ SHELL := sh -e +VERSION := $(shell dpkg-parsechangelog -SVersion | sed -e 's|~dev|.dev|' -e 's|+.*||') + %: dh ${@} --buildsystem=pybuild --with=python3 -execute_after_dh_auto_test: - 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 +execute_after_dh_auto_clean: + rm -f RELEASE-VERSION -override_dh_auto_build: - python3 setup.py build +execute_before_dh_auto_build: + echo "$(VERSION)" > RELEASE-VERSION override_dh_auto_test: # disabled -override_dh_auto_install: - python3 setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb - +execute_after_dh_auto_install: + # unpacking plugins cd debian/tmp/usr/lib/python*/*-packages/deluge/plugins/; \ for EGG in *.egg; \ do \ @@ -29,4 +26,5 @@ override_dh_auto_install: rm -f $${EGG}; \ done - find . -type d -name '__pycache__' | xargs rm -rf + # removing unused files + find debian/tmp -type d -name '__pycache__' | xargs rm -rf -- cgit v1.2.3