Files
docker-php-fpm/php_tools/wkhtmltopdf/install.yml
2022-12-09 12:50:34 +01:00

62 lines
1.3 KiB
YAML

---
check: wkhtmltopdf --version | grep ^wkhtmltopdf | grep -E '[0-9]\.[0-9]+' | grep patched || (wkhtmltopdf --version; false)
all:
type: custom
pre: OS_RELEASE="bullseye"
command: |
DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
&& WK_URL="$( \
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
| head -1 \
)" \
&& echo "URL: ${WK_URL}" \
&& curl -sS -L --fail -o /tmp/wkhtmltopdf.deb "${WK_URL}" \
&& dpkg -i /tmp/wkhtmltopdf.deb \
&& rm -f /tmp/wkhtmltopdf.deb \
run_dep:
- fontconfig
- libfontenc1
- libxfont2
- libxrender1
- xfonts-75dpi
- xfonts-base
- xfonts-encodings
- xfonts-utils
7.2:
type: custom
pre: OS_RELEASE="buster"
7.1:
type: custom
pre: OS_RELEASE="buster"
7.0:
type: custom
pre: OS_RELEASE="stretch"
run_dep:
- fontconfig
- libfontenc1
- libxfont1
- libxrender1
- xfonts-75dpi
- xfonts-base
- xfonts-encodings
- xfonts-utils
5.6:
type: custom
pre: OS_RELEASE="stretch"
run_dep:
- fontconfig
- libfontenc1
- libxfont1
- libxrender1
- xfonts-75dpi
- xfonts-base
- xfonts-encodings
- xfonts-utils