# - Some settings
# -
os_codename=bookworm
version_wkhtmltox=0.12.6.1-3


# - Download Debian package from:
# -    https://github.com/wkhtmltopdf/packaging/releases
# -
mkdir -p /usr/local/src/wkhtmltox
cd /usr/local/src/wkhtmltox

wget -O /usr/local/src/wkhtmltox/wkhtmltox_${version_wkhtmltox}.${os_codename}_amd64.deb \
   https://github.com/wkhtmltopdf/packaging/releases/download/${version_wkhtmltox}/wkhtmltox_${version_wkhtmltox}.${os_codename}_arm64.deb


# - Install dependency package
# -
apt install ca-certificates fontconfig libc6 libfreetype6 libjpeg62-turbo libpng16-16 libssl3 libstdc++6 libx11-6 libxcb1 libxext6 libxrender1 xfonts-75dpi xfonts-base zlib1g

# - Install wkhtmltopdf wkhtmltox
# -
dpkg -i /usr/local/src/wkhtmltox/wkhtmltox_${version_wkhtmltox}.${os_codename}_amd64.deb

