#!/bin/sh DEBIAN=stretch PLANTUML=master set -e printf '%s\n' \ "deb http://ftp.debian.org/debian $DEBIAN-backports main" \ > /etc/apt/sources.list.d/$DEBIAN-backports.list apt-get update apt-get dist-upgrade -y # backported cmake requires backported libuv1 apt-get install --no-install-recommends -y \ ca-certificates \ cmake/$DEBIAN-backports \ curl \ default-jre-headless \ git \ graphviz \ libuv1/$DEBIAN-backports \ make \ python3-pip \ python3-setuptools \ python3-wheel # some font metapackages use recommends to install their subpackages apt-get install -y \ fonts-dejavu \ fonts-liberation \ fonts-noto ln -s /usr/bin/python3 /usr/local/bin/python ln -s /usr/bin/pip3 /usr/local/bin/pip pip install \ sphinx \ sphinx_rtd_theme \ sphinxcontrib-plantuml mkdir -p /opt/plantuml for i in batik-all-1.7.jar jlatexmath-minimal-1.0.3.jar jlm_cyrillic.jar \ jlm_greek.jar plantuml.jar do curl -Lf \ -o /opt/plantuml/$i \ https://git.mel.vin/mirror/plantuml/raw/$PLANTUML/$i done printf '%s\n%s\n' \ '#!/bin/sh' \ 'exec java -jar /opt/plantuml/plantuml.jar "$@"' \ > /usr/local/bin/plantuml chmod +x /usr/local/bin/plantuml apt-get purge -y \ curl apt-get autoremove -y apt-get clean rm -rf /var/lib/apt/lists/*