mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-21 20:56:19 +00:00
352a790d2f
QtWebKit is unmaintained and insecure with multiple remote code execution vulnerabilities - see: https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/
23 lines
987 B
Bash
23 lines
987 B
Bash
TERMUX_PKG_HOMEPAGE=https://wkhtmltopdf.org/
|
|
TERMUX_PKG_DESCRIPTION="wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine."
|
|
TERMUX_PKG_LICENSE="LGPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@Yisus7u7"
|
|
TERMUX_PKG_VERSION=0.12.6
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=https://github.com/wkhtmltopdf/wkhtmltopdf/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=adcced78492e7366d940c66a1327a85d3ae8c45190f486f545fdaa84cac662f0
|
|
TERMUX_PKG_DEPENDS="libc++, qt5-qtbase, qt5-qtsvg, qt5-qtwebkit, qt5-qtxmlpatterns"
|
|
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_configure () {
|
|
"${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \
|
|
-spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross"
|
|
}
|
|
|
|
termux_step_make_install () {
|
|
cd ${TERMUX_PKG_SRCDIR}/bin
|
|
install -Dm700 -t ${TERMUX_PREFIX}/lib ./*.so*
|
|
install -Dm700 -t ${TERMUX_PREFIX}/bin ./wkhtmltoimage ./wkhtmltopdf
|
|
}
|