File matekbd-keyboard-display-add-man-page.patch of Package matekbd-keyboard-display
From a3d4c0d83db377835ba073c9300cda3e16e96594 Mon Sep 17 00:00:00 2001
From: Robert Tari <robert@tari.in>
Date: Mon, 2 Oct 2023 22:37:54 +0200
Subject: [PATCH] Add manpage
fixes https://github.com/tari01/matekbd-keyboard-display/issues/1
---
CMakeLists.txt | 1 +
man/CMakeLists.txt | 4 +++
man/matekbd-keyboard-display.1 | 60 ++++++++++++++++++++++++++++++++++
4 files changed, 67 insertions(+)
create mode 100755 .gitignore
create mode 100644 man/CMakeLists.txt
create mode 100644 man/matekbd-keyboard-display.1
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1ca49b..a181010 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,6 +32,7 @@ pkg_check_modules (DEPS REQUIRED libxklavier gtk+-3.0 libmatekbdui atk)
add_subdirectory (src)
add_subdirectory (data)
+add_subdirectory (man)
# Info
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
new file mode 100644
index 0000000..4c7c9d9
--- /dev/null
+++ b/man/CMakeLists.txt
@@ -0,0 +1,4 @@
+# matekbd-keyboard-display.1.gz
+
+file (ARCHIVE_CREATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/matekbd-keyboard-display.1.gz" PATHS "${CMAKE_CURRENT_SOURCE_DIR}/matekbd-keyboard-display.1" FORMAT raw COMPRESSION GZip)
+install (FILES "${CMAKE_CURRENT_BINARY_DIR}/matekbd-keyboard-display.1.gz" DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man1")
diff --git a/man/matekbd-keyboard-display.1 b/man/matekbd-keyboard-display.1
new file mode 100644
index 0000000..ce69091
--- /dev/null
+++ b/man/matekbd-keyboard-display.1
@@ -0,0 +1,60 @@
+.\" Automatically generated by Pandoc 3.1.2
+.\"
+.\" Define V font for inline verbatim, using C font in formats
+.\" that render this, and otherwise B font.
+.ie "\f[CB]x\f[]"x" \{\
+. ftr V B
+. ftr VI BI
+. ftr VB B
+. ftr VBI BI
+.\}
+.el \{\
+. ftr V CR
+. ftr VI CI
+. ftr VB CB
+. ftr VBI CBI
+.\}
+.TH "matekbd-keyboard-display" "1" "Nov 2023" "Version 23.11.1" "matekbd-keyboard-display"
+.hy
+.SH NAME
+.PP
+matekbd-keyboard-display - Preview keyboard layouts on MATE desktop
+.SH SYNOPSIS
+.PP
+\f[B]matekbd-keyboard-display\f[R] [\f[I]OPTION\f[R]]
+.SH DESCRIPTION
+.PP
+matekbd-keyboard-display is an application that allows you to preview
+keyboard layouts on MATE desktop.
+.PP
+It uses the libmatekbd library, similarly to gkbd-keyboard-display and
+libgnomekbd.
+.SH OPTIONS
+.TP
+\f[B]-g\f[R]
+Specify the layout group you wish to preview.
+If you omit this, the currently selected layout will be used.
+.SH EXIT VALUES
+.PP
+0 The command was invoked successfully.
+.PP
+1 There was an initialisation problem.
+.PP
+2 An invalid group number was supplied.
+.SH BUGS
+.PP
+GitHub issues:
+<https://github.com/tari01/matekbd-keyboard-display/issues>
+.SH AUTHOR
+.PP
+Written by Robert Tari <robert@tari.in>.
+.SH COPYRIGHT
+.PP
+Copyright © 2023 Robert Tari.
+License GPLv3+: GNU GPL version 3 or later
+<https://gnu.org/licenses/gpl.html>.
+.PD 0
+.P
+.PD
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.