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 37
|
#!/usr/bin/make -f
export PYBUILD_SYSTEM=distutils
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_configure:
# backup original pot file
if [ -e po/mate-tweak.pot ] && [ ! -e po/mate-tweak.pot.bak ]; then \
cp po/mate-tweak.pot po/mate-tweak.pot.bak; \
fi
dh_auto_configure --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
rm debian/mate-tweak/usr/lib/python3*/dist-packages/setup*.py*
override_dh_auto_clean:
rm -Rf mate_tweak.egg-info/
# restore original pot file
if [ -e po/mate-tweak.pot.bak ]; then \
mv po/mate-tweak.pot.bak po/mate-tweak.pot; \
fi
# dh_auto_clean with pybuild/distutils only works if setup.py is
# present
if [ -f setup.py ]; then \
python3 setup.py clean_i18n; \
dh_auto_clean; \
fi
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=..
|