blob: cac3bd538f59b1d12f944fcb2e089ee4f217a5e0 (
plain) (
blame)
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
30
31
32
33
34
35
36
|
#!/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
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
|