Skip to content

Commit

Permalink
Update debian packaging
Browse files Browse the repository at this point in the history
- Remove manual
- Remove python packages, these are
  calculated using pybuild
- Update d/rules
  • Loading branch information
hsbasu committed Mar 3, 2024
1 parent 82a5d80 commit 0c8f116
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 77 deletions.
58 changes: 0 additions & 58 deletions debian/battery-monitor.1

This file was deleted.

9 changes: 2 additions & 7 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: battery-monitor
Section: utils
Priority: optional
Maintainer: Himadri Sekhar Basu <hsb10@iitbbs.ac.in>
Build-Depends: debhelper-compat (= 12),
Build-Depends: debhelper-compat (= 13),
dh-python,
python3,
python3-setuptools,
Expand All @@ -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
Expand Down
15 changes: 3 additions & 12 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,19 @@ 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
#
# And uncomment the following lines
#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

0 comments on commit 0c8f116

Please sign in to comment.