diff --git a/debian/DEBIAN/control b/debian/DEBIAN/control deleted file mode 100644 index 6564b74010a2077c2fa4c346b249ad83eff506f7..0000000000000000000000000000000000000000 --- a/debian/DEBIAN/control +++ /dev/null @@ -1,9 +0,0 @@ -Package: reform-handbook -Version: 1.0-2 -Section: base -Priority: optional -Architecture: all -Depends: bash, xdg-utils, elinks -Maintainer: Lukas F. Hartmann <lukas@mntre.com> -Description: MNT Reform Operator Handbook - The HTML version of the handbook for the MNT Reform OSHW laptop, plus a helper script /usr/bin/reform-handbook which opens the web pages using xdg-open or elinks. Includes a copy of the Inter font by rsms. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..929e7a8fbd4ea56d7b5a68e125e82e340bb24bb4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +reform-handbook (1.1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #XXXXXX) + + -- Johannes Schauer Marin Rodrigues <josch@debian.org> Fri, 28 Jan 2022 15:13:12 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..2d911ed2fb1fa92bbf393ad20ed1cd794b02b244 --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: reform-handbook +Section: doc +Priority: optional +Maintainer: Lukas F. Hartmann <lukas@mntre.com> +Uploaders: Johannes Schauer Marin Rodrigues <josch@debian.org> +Homepage: https://source.mnt.re/reform/reform-handbook/ +Standards-Version: 4.6.0.1 +Build-Depends: debhelper-compat (= 13), + dh-sequence-sphinxdoc, + fonts-inter, + ghostscript, + pandoc, + python3-sphinx, + texlive-font-utils, + texlive-fonts-recommended, + texlive-latex-extra, + texlive-xetex +Rules-Requires-Root: no + +Package: reform-handbook +Architecture: all +Depends: elinks, xdg-utils, ${misc:Depends}, ${sphinxdoc:Depends} +Description: MNT Reform Operator Handbook + The HTML version of the handbook for the MNT Reform OSHW laptop, plus a helper + script /usr/bin/reform-handbook which opens the web pages using xdg-open or + elinks. diff --git a/debian/mkdeb.sh b/debian/mkdeb.sh deleted file mode 100755 index 742cd05f83df70968667635ccdbabdbc087701be..0000000000000000000000000000000000000000 --- a/debian/mkdeb.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -version="1.0-3" -target="./reform-handbook_${version}/usr/share/doc/reform-handbook" - -mkdir -p "${target}/usr/bin" -cp reform-handbook "${target}/usr/bin/" - -mkdir -p "${target}/html" -rm -r "${target}/html" - -cp -Rv ./DEBIAN "./reform-handbook_${version}/" -cp -Rv ../src/build/html "${target}/" - -rm "${target}/html/_static/schem/"*.sla -rm "${target}/html/_static/"*.sla - -for f in "${target}/html/_images/*" -do - echo "mogrify: $f" - mogrify -resize 1280 "$f" -done - -du -ch ./reform-handbook_${version} - -dpkg-deb -b ./reform-handbook_${version} diff --git a/debian/reform-handbook.docs b/debian/reform-handbook.docs new file mode 100644 index 0000000000000000000000000000000000000000..fd9d94a56d762a54a0bf6fb72a5c52e79a4b87c9 --- /dev/null +++ b/debian/reform-handbook.docs @@ -0,0 +1,2 @@ +src/build/html +src/build/reform-handbook.pdf diff --git a/debian/reform-handbook.install b/debian/reform-handbook.install new file mode 100644 index 0000000000000000000000000000000000000000..7cc7b8ab8a7bc01c82be94e22152ebcebf1b6356 --- /dev/null +++ b/debian/reform-handbook.install @@ -0,0 +1 @@ +reform-handbook /usr/bin diff --git a/debian/reform-handbook_1.0-1/DEBIAN/control b/debian/reform-handbook_1.0-1/DEBIAN/control deleted file mode 100644 index dc77bed7f5d8aba23fc605c1506595e12518bc33..0000000000000000000000000000000000000000 --- a/debian/reform-handbook_1.0-1/DEBIAN/control +++ /dev/null @@ -1,9 +0,0 @@ -Package: reform-handbook -Version: 1.0-1 -Section: base -Priority: optional -Architecture: all -Depends: bash, xdg-utils, elinks -Maintainer: Lukas F. Hartmann <lukas@mntre.com> -Description: MNT Reform Operator Handbook - The HTML version of the handbook for the MNT Reform OSHW laptop, plus a helper script /usr/bin/reform-handbook which opens the web pages using xdg-open or elinks. Includes a copy of the Inter font by rsms. diff --git a/debian/reform-handbook_1.0-1/usr/bin/reform-handbook b/debian/reform-handbook_1.0-1/usr/bin/reform-handbook deleted file mode 100755 index 1eebdfe68436dc02eaf6b205a8e20e0bbfb52843..0000000000000000000000000000000000000000 --- a/debian/reform-handbook_1.0-1/usr/bin/reform-handbook +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ -z ${DISPLAY+x} ] -then - # not running under X/wayland - elinks /usr/share/doc/reform-handbook/html/index.html -else - xdg-open /usr/share/doc/reform-handbook/html/index.html -fi diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..c76a84a78c750a8e0ffdc6ae9372229bd7240bca --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + make -C src html + env --chdir=src ./build-pdf-book.sh + find src/build/html/_static -name '*.sla' -delete + +override_dh_compress: + dh_compress -X.csv -X.eps -X.pdf -X.sla -X.ttf diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000000000000000000000000000000000..89ae9db8f88b823b6a7eabf55e203658739da122 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/reform-handbook b/reform-handbook similarity index 100% rename from debian/reform-handbook rename to reform-handbook