diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000000000000000000000000000000000000..f03cb7433c9da52f26a67496b47b5c91f3ff3037 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +debian/librem5-flash-image.1 diff --git a/debian/control b/debian/control index dd92b45b2a48884b3dc06aa78a2fb6a88013ec88..cca9a26816f58e315182f8a645d9ecbba35f9246 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Maintainer: Guido Günther <agx@sigxcpu.org> Build-Depends: debhelper (>= 11), flake8, + help2man, shellcheck, Standards-Version: 4.1.3 Homepage: https://source.puri.sm/Librem5/librem5-devkit-tools/ diff --git a/debian/librem5-host.manpages b/debian/librem5-host.manpages new file mode 100644 index 0000000000000000000000000000000000000000..7af7843e51d5cc5fb44824ec3a819c2b7709e512 --- /dev/null +++ b/debian/librem5-host.manpages @@ -0,0 +1 @@ +librem5-flash-image.1 diff --git a/debian/rules b/debian/rules index 1fd4402e87895cbb3ada1c47d2b0794e4ec9603a..4dcd28d3e5c80dbfc64a671d0cee0f16453c90c0 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/default.mk + %: dh $@ @@ -16,3 +18,9 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) else @echo "Checks disabled via DEB_BUILD_OPTIONS" endif + +override_dh_installman: + help2man -N --version-string=$(DEB_VERSION_UPSTREAM) \ + --version-string=0.0.12 scripts/librem5-flash-image \ + > debian/tmp/librem5-flash-image.1 + dh_installman