Skip to content

Commit

Permalink
Include doc and manpage in Debian package.
Browse files Browse the repository at this point in the history
This implies building HTML doc and therefore
adds python3-sphinx as a build-time dependency.
  • Loading branch information
sgourichon committed Feb 11, 2020
1 parent a0098e4 commit 00af923
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Build-Depends: debhelper (>= 9),
python3-dbus,
gir1.2-gtk-3.0,
gir1.2-wnck-3.0,
gir1.2-glib-2.0
gir1.2-glib-2.0,
python3-sphinx
Standards-Version: 4.4.0

Package: quicktile
Expand Down
3 changes: 2 additions & 1 deletion debian/docs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
quicktile
docs/_build/html
README.rst
1 change: 1 addition & 0 deletions debian/manpages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/_build/man/quicktile.1
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ include /usr/share/dpkg/default.mk
override_dh_auto_install:
dh_auto_install
install -D quicktile.desktop debian/quicktile/etc/xdg/autostart/quicktile.desktop

override_dh_installdocs:
pip3 install --user sphinx_autodoc_typehints sphinxcontrib.autoprogram
( cd docs ; env PATH=$$HOME/.local/bin/:$$PATH make html ; )
dh_installdocs

override_dh_installman:
pip3 install --user sphinx_autodoc_typehints sphinxcontrib.autoprogram
( cd docs ; env PATH=$$HOME/.local/bin/:$$PATH make man ; )
dh_installman

0 comments on commit 00af923

Please sign in to comment.