Package: pass-extension-update
Version: 2.2.1-1
Severity: minor
Tags: patch

Hi,

Upstream includes a manpage that needs to be built using pandoc, please
install the manpage in the package.

The attached patch builds and installs the manpage, respecting the nodoc
build profile.

>From 35dc9a1576e4b4a0728c83d8255be8e027074ca3 Mon Sep 17 00:00:00 2001
From: Teemu Hukkanen <[email protected]>
Date: Thu, 13 Aug 2026 12:07:26 +0300
Subject: [PATCH] Build and install upstream manpage

Add Build-Depends on pandoc for building the manpage, annotated with
the nodoc profile.

Run "make docs" to build the manpage, guard with nodoc profile check.

Add necessary debian/pass-extension-update.manpages and debian/clean
files.
---
 debian/clean                          | 1 +
 debian/control                        | 1 +
 debian/pass-extension-update.manpages | 1 +
 debian/rules                          | 5 +++++
 4 files changed, 8 insertions(+)
 create mode 100644 debian/clean
 create mode 100644 debian/pass-extension-update.manpages

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..80fe2eb
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+share/man/man1/pass-update.1
diff --git a/debian/control b/debian/control
index 878c4bc..e43fe78 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Alexandre Pujol <[email protected]>
 Uploaders: Antoine Beaupré <[email protected]>
 Build-Depends:
   debhelper-compat (= 12),
+  pandoc <!nodoc>,
 Standards-Version: 4.6.0.1
 Homepage: https://github.com/roddhjav/pass-update
 Rules-Requires-Root: no
diff --git a/debian/pass-extension-update.manpages b/debian/pass-extension-update.manpages
new file mode 100644
index 0000000..80fe2eb
--- /dev/null
+++ b/debian/pass-extension-update.manpages
@@ -0,0 +1 @@
+share/man/man1/pass-update.1
diff --git a/debian/rules b/debian/rules
index 47add64..e934375 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,8 @@
 	dh ${@}
 
 override_dh_auto_clean: ;
+
+execute_after_dh_auto_build:
+ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
+	make docs
+endif
-- 
2.55.0

Reply via email to