36 lines
903 B
Bash
36 lines
903 B
Bash
# Template file for 'wkhtmltopdf'
|
|
pkgname=wkhtmltopdf
|
|
version=0.12.5
|
|
revision=2
|
|
build_style=qmake
|
|
hostmakedepends="qt5-qmake"
|
|
configure_args="INSTALLBASE=/usr"
|
|
makedepends="qt5-xmlpatterns-devel qt5-svg-devel qt5-webkit-devel"
|
|
depends="qt5-svg"
|
|
short_desc="Convert HTML to PDF using Webkit"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://wkhtmltopdf.org"
|
|
distfiles="https://github.com/wkhtmltopdf/wkhtmltopdf/archive/${version}.tar.gz"
|
|
checksum=861d6e61e2f5beb2d8daaade2cd5a85b84065ee9fac0d6d85000d8a7712a4621
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" ${makedepends}"
|
|
fi
|
|
|
|
libwkhtmltopdf_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
wkhtmltopdf-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|