From 6ae6a44ae9a971011d467b2f2b674a11b630c8bb Mon Sep 17 00:00:00 2001 From: "alan (NyxTrail)" Date: Sat, 9 Mar 2024 07:02:00 +0000 Subject: [PATCH] Debian: Add a man page --- debian/control | 3 ++- debian/hyprpaper.1.rst | 33 +++++++++++++++++++++++++++++++++ debian/hyprpaper.manpages | 1 + debian/rules | 2 ++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 debian/hyprpaper.1.rst create mode 100644 debian/hyprpaper.manpages diff --git a/debian/control b/debian/control index 0476ec0..13c05cb 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,8 @@ Build-Depends: cmake, libwayland-dev, libwebp-dev, libwlroots-dev, - ninja-build + ninja-build, + pandoc Standards-Version: 4.6.2 Homepage: https://github.com/hyprwm/hyprpaper Rules-Requires-Root: no diff --git a/debian/hyprpaper.1.rst b/debian/hyprpaper.1.rst new file mode 100644 index 0000000..34ebca5 --- /dev/null +++ b/debian/hyprpaper.1.rst @@ -0,0 +1,33 @@ +:title: hyprpaper + +NAME +==== +hyprpaper - Wallpaper utility for Hyprland (and other wlroots-based compositors). + +SYNOPSIS +======== +**hyprpaper** [arg [...]] + +OPTIONS +======= +**-h**, **--help** + Show command usage. + +**-c**, **--config** + Specify config file to use + +**--no-fractional**, **-n** + Disable fractional scaling support + +BUGS +==== +Submit bug reports and request features online at: + <*https://github.com/hyprwm/hyprpaper/issues*> + +SEE ALSO +======== +Sources at: <*https://github.com/hyprwm/hyprpaper*> + +AUTHORS +======= +Created by Alan M Varghese for Debian GNU/Linux packaging of hyprpaper diff --git a/debian/hyprpaper.manpages b/debian/hyprpaper.manpages new file mode 100644 index 0000000..7055155 --- /dev/null +++ b/debian/hyprpaper.manpages @@ -0,0 +1 @@ +usr/share/doc/hyprpaper/hyprpaper.1 diff --git a/debian/rules b/debian/rules index 7343fee..42888da 100755 --- a/debian/rules +++ b/debian/rules @@ -19,4 +19,6 @@ override_dh_clean: $(MAKE) clear override_dh_auto_install: + mkdir -p debian/tmp/usr/share/doc/hyprpaper + pandoc debian/hyprpaper.1.rst --standalone --variable=header:"hyprpaper User Manual" --variable=section:1 --from rst --to man > debian/tmp/usr/share/doc/hyprpaper/hyprpaper.1 dh_auto_install -- PREFIX='$${DESTDIR}/usr'