void-packages/srcpkgs/wkhtmltopdf/template

32 lines
850 B
Bash

# Template file for 'wkhtmltopdf'
pkgname=wkhtmltopdf
version=0.12.6
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
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=adcced78492e7366d940c66a1327a85d3ae8c45190f486f545fdaa84cac662f0
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
}
}