From 0c8f11624422e605b0f50684bed4bd6d3e487b81 Mon Sep 17 00:00:00 2001 From: Himadri Sekhar Basu Date: Sun, 3 Mar 2024 22:25:58 +0530 Subject: [PATCH] Update debian packaging - Remove manual - Remove python packages, these are calculated using pybuild - Update d/rules --- debian/battery-monitor.1 | 58 ---------------------------------------- debian/control | 9 ++----- debian/rules | 15 +++-------- 3 files changed, 5 insertions(+), 77 deletions(-) delete mode 100644 debian/battery-monitor.1 diff --git a/debian/battery-monitor.1 b/debian/battery-monitor.1 deleted file mode 100644 index 2bd1a79..0000000 --- a/debian/battery-monitor.1 +++ /dev/null @@ -1,58 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" (C) Copyright 2022 Himadri Sekhar Basu , -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH BATTERY-MONITOR 1 "June 20 2022" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -battery-monitor \- A utility tool to monitor laptop battery -.SH SYNOPSIS -.B battery-monitor -.RI [ options ] -.br -.SH DESCRIPTION -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBbattery-monitor\fP is a utility tool, notifies user about charging, discharging and not charging state of the laptop battery on Linux. -.SH OPTIONS -battery-monitor launches automatically at start-up as an indicator. -.br -To open the settings window, you may launch battery-monitor with no options. -.TP -.B \-h, \-\-help -Show summary of options. -.TP -.B \-i, \-\-indicator -Start Battery Monitor Indicator. -.TP -.B \-t, \-\-test -Test Battery Monitor for debug purposes when battery is absent. -.TP -.B \-v, \-\-verbose -Print debug messages to stdout i.e. terminal. -.TP -.B \-V, \-\-version -Show version of program. -.SH AUTHORS -battery-monitor was developed by Maksudur Rahman Maateen with various contributors -.br -This manual page was originally written by Himadri Sekhar Basu . -.SH COPYRIGHT -Copyright (C) 2020-2022 Himadri Sekhar Basu -.br -There is NO warranty. You may redistribute this software under the terms of the GNU General Public License. For more information about these matters, see the files named copyright. diff --git a/debian/control b/debian/control index 8e83574..bf72e78 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: battery-monitor Section: utils Priority: optional Maintainer: Himadri Sekhar Basu -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper-compat (= 13), dh-python, python3, python3-setuptools, @@ -17,14 +17,9 @@ Rules-Requires-Root: no Package: battery-monitor Architecture: all Depends: acpi, - gobject-introspection, - gir1.2-gtk-3.0, gir1.2-appindicator3-0.1, + gir1.2-gtk-3.0, gir1.2-notify-0.7, - python3-configobj, - python3-gi, - python3-setproctitle, - python3-tldextract, ${python3:Depends}, ${misc:Depends}, Description: Monitor Laptop Battery diff --git a/debian/rules b/debian/rules index 416f2d9..b25656e 100755 --- a/debian/rules +++ b/debian/rules @@ -10,10 +10,6 @@ export PYBUILD_INSTALL_ARGS_python3=--install-scripts=usr/bin dh ${@} --with python3 --buildsystem=pybuild -override_dh_auto_clean: - dh_auto_clean - rm -rf usr - # If you need to rebuild the Sphinx documentation # Add sphinxdoc to the dh --with line # @@ -21,17 +17,12 @@ override_dh_auto_clean: #override_dh_auto_build: export http_proxy=127.0.0.1:9 #override_dh_auto_build: export https_proxy=127.0.0.1:9 override_dh_auto_build: - dh_auto_build -# PYTHONPATH=. python3 -m sphinx -N -bhtml \ -# docs/ usr/share/html # HTML generator -# PYTHONPATH=. python3 -m sphinx -N -bman \ -# docs/ usr/share/man/man1 # Manpage generator + dh_auto_build -O--buildsystem=pybuild override_dh_install: - dh_install - install -D -m 0644 debian/battery-monitor.1 debian/battery-monitor/usr/share/man/man1/battery-monitor.1 + dh_install -O--buildsystem=pybuild install -D -m 0644 data/org.mamolinux.battery-monitor.gschema.xml.in debian/battery-monitor/usr/share/glib-2.0/schemas/org.mamolinux.battery-monitor.gschema.xml install -D -m 0644 data/battery-monitor-autostart.desktop.in debian/battery-monitor/etc/xdg/autostart/battery-monitor-autostart.desktop override_dh_auto_install: - dh_auto_install --destdir=$(CURDIR)/$(DEB_SOURCE) + dh_auto_install --destdir=$(CURDIR)/$(DEB_SOURCE) -O--buildsystem=pybuild