From 315cf2cd8bf5dbf156aa5610fe4c64a07d04abce Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 15 May 2024 08:44:23 +0200 Subject: d/rules: Add fixes/improvements from official DEB package. --- debian/rules | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 004e738..cd829ee 100755 --- a/debian/rules +++ b/debian/rules @@ -1,14 +1,30 @@ #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- +export PYBUILD_SYSTEM=distutils +export PYBUILD_NAME=ayatana-webmail + %: - dh $@ --with python3 --buildsystem=pybuild + dh $@ --with python3 --buildsystem=pybuild -override_dh_auto_clean: - dh_auto_clean +override_dh_clean: + dh_clean + rm -Rfv .pybuild/ rm -Rfv data/usr/share/locale - rm -fv ayatana-webmail.egg-info/PKG-INFO - rm -fv ayatana-webmail.egg-info/SOURCES.txt - rm -fv ayatana-webmail.egg-info/dependency_links.txt - rm -fv ayatana-webmail.egg-info/requires.txt - rm -fv ayatana-webmail.egg-info/top_level.txt + rm -fv ayatanawebmail.egg-info/PKG-INFO + rm -fv ayatanawebmail.egg-info/SOURCES.txt + rm -fv ayatanawebmail.egg-info/dependency_links.txt + rm -fv ayatanawebmail.egg-info/requires.txt + rm -fv ayatanawebmail.egg-info/top_level.txt + rm -f data/etc/xdg/autostart/ayatana-webmail-autostart.desktop + rm -f data/usr/share/applications/ayatana-webmail.desktop + +override_dh_fixperms: + dh_fixperms + chmod a-x debian/*/usr/share/icons/hicolor/scalable/status/ayatanawebmail-messages-new.svg + chmod a-x debian/*/usr/share/icons/hicolor/scalable/status/ayatanawebmail-messages.svg + chmod a-x debian/*/usr/share/glib-2.0/schemas/org.ayatana.webmail.gschema.xml + chmod a-x debian/*/usr/share/icons/hicolor/scalable/apps/ayatanawebmail.svg + +override_dh_installchangelogs: + dh_installchangelogs NEWS -- cgit v1.2.3