Skip to content
Snippets Groups Projects
Unverified Commit 9ec83d87 authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

Add debianization

parent 39d2698b
No related branches found
No related tags found
No related merge requests found
Pipeline #431 canceled
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.
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
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.
#!/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}
src/build/html
src/build/reform-handbook.pdf
reform-handbook /usr/bin
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.
#!/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
#!/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
3.0 (native)
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment