From 48eba0acd59ea5cee5f1719d51ef725d6b269b3d Mon Sep 17 00:00:00 2001 From: "Dr. Tobias Quathamer" Date: Fri, 27 Apr 2018 10:10:08 +0200 Subject: [PATCH] Create and install pdf file for trek documentation --- debian/clean | 1 + debian/control | 1 + debian/docs | 1 + debian/rules | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/debian/clean b/debian/clean index 21b9d27..4f35713 100644 --- a/debian/clean +++ b/debian/clean @@ -1 +1,2 @@ temp-dictionary +debian/trek.pdf diff --git a/debian/control b/debian/control index 4bc60c9..3b99436 100644 --- a/debian/control +++ b/debian/control @@ -4,6 +4,7 @@ Priority: optional Build-Depends: bison, debhelper (>= 11~), flex, + groff, libfl-dev, libncurses5-dev, wamerican, diff --git a/debian/docs b/debian/docs index bcdcd8a..d1672dc 100644 --- a/debian/docs +++ b/debian/docs @@ -7,3 +7,4 @@ SECURITY THANKS TODO YEAR2000 +debian/trek.pdf diff --git a/debian/rules b/debian/rules index bb6bad6..a396d89 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,8 @@ override_dh_auto_build: cat /usr/share/dict/american-english /usr/share/dict/british-english | \ sort | uniq > temp-dictionary dh_auto_build + # Generate a pdf file for trek documentation, see #874680 + cat trek/USD.doc/trek.me | tbl | groff -me -Tpdf > debian/trek.pdf override_dh_installdocs: dh_installdocs @@ -34,6 +36,9 @@ override_dh_install: mv debian/bsdgames/usr/games/adventure debian/bsdgames/usr/games/bsdgames-adventure mv debian/bsdgames/usr/share/man/man6/adventure.6 debian/bsdgames/usr/share/man/man6/bsdgames-adventure.6 +override_dh_compress: + dh_compress --exclude=.pdf + override_dh_fixperms: dh_fixperms chmod -R u+rw debian/bsdgames/usr/