diff --git a/debian/control b/debian/control index 8d6ac44..803c856 100644 --- a/debian/control +++ b/debian/control @@ -11,6 +11,8 @@ Build-Depends: debhelper-compat (= 13), meson, pybuild-plugin-pyproject, python3, + python3-sphinx, + python3-sphinx-argparse Standards-Version: 4.6.0 Homepage: https://hsbasu.github.io/theme-manager #Vcs-Browser: https://salsa.debian.org/debian/theme-manager @@ -24,7 +26,8 @@ Depends: gir1.2-gtk-3.0, gir1.2-appindicator3-0.1, redshift, ${python3:Depends}, - ${misc:Depends} + ${misc:Depends}, + ${sphinxdoc:Depends} Suggests: theme-manager-doc Description: Automatically change Themes A Python3-based GUI application diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..73752c9 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +usr diff --git a/debian/postinst b/debian/postinst index 0f3a384..76a360f 100644 --- a/debian/postinst +++ b/debian/postinst @@ -12,6 +12,10 @@ case "$1" in then glib-compile-schemas /usr/share/glib-2.0/schemas fi + if which gtk4-update-icon-cache >/dev/null 2>&1 + then + gtk4-update-icon-cache -q -t -f /usr/share/icons/hicolor + fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/postrm b/debian/postrm index 52f1f37..f7c3eb5 100644 --- a/debian/postrm +++ b/debian/postrm @@ -12,6 +12,10 @@ case "$1" in then glib-compile-schemas /usr/share/glib-2.0/schemas fi + if which gtk4-update-icon-cache >/dev/null 2>&1 + then + gtk4-update-icon-cache -q -t -f /usr/share/icons/hicolor + fi ;; *) diff --git a/debian/rules b/debian/rules index b6d3e9e..38cbc16 100755 --- a/debian/rules +++ b/debian/rules @@ -7,21 +7,22 @@ export PYBUILD_NAME=theme-manager export PYBUILD_SYSTEM=pyproject %: - dh ${@} --with=python3 --buildsystem=meson + dh ${@} --with=python3,sphinxdoc --buildsystem=meson # 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 +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 -O--buildsystem=meson + PYTHONPATH=. python3 -m sphinx -N -bhtml \ + docs/ usr/share/doc/theme-manager/html # HTML generator + PYTHONPATH=. python3 -m sphinx -N -bman \ + docs/ usr/share/man/man1 # Manpage generator + rm -rfv usr/share/doc/theme-manager/html/.doctrees usr/share/man/man1/.doctrees override_dh_install: dh_install -O--buildsystem=meson diff --git a/debian/theme-manager.1 b/debian/theme-manager.1 deleted file mode 100644 index f706097..0000000 --- a/debian/theme-manager.1 +++ /dev/null @@ -1,56 +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 theme-manager SECTION "May 29 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 -theme-manager \- program to do something -.SH SYNOPSIS -.B theme-manager -.RI [ options ] " files" ... -.br -.B bar -.RI [ options ] " files" ... -.SH DESCRIPTION -This manual page documents briefly the -.B theme-manager -and -.B bar -commands. -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBtheme-manager\fP is a program that... -.SH OPTIONS -These programs follow the usual GNU command line syntax, with long -options starting with two dashes (`-'). -A summary of options is included below. -For a complete description, see the Info files. -.TP -.B \-h, \-\-help -Show summary of options. -.TP -.B \-v, \-\-version -Show version of program. -.SH SEE ALSO -.BR bar (1), -.BR baz (1). -.br -The programs are documented fully by -.IR "The Rise and Fall of a Fooish Bar" , -available via the Info system. diff --git a/debian/theme-manager.doc-base b/debian/theme-manager.doc-base new file mode 100644 index 0000000..5922a43 --- /dev/null +++ b/debian/theme-manager.doc-base @@ -0,0 +1,13 @@ +Document: theme-manager +Title: Debian Battery Monitor Manual +Author: Himadri Sekhar Basu +Abstract: This manual describes what + Theme Manager is and how it can be used + to change themes for different componets + automatically with time on linux desktop + environments. +Section: System/Administration + +Format: HTML +Index: /usr/share/doc/theme-manager/html/index.html +Files: /usr/share/doc/theme-manager/html/*.html