void-packages/srcpkgs/wkhtmltopdf/template

37 lines
934 B
Bash

# Template file for 'wkhtmltopdf'
pkgname=wkhtmltopdf
version=0.12.4
revision=2
build_style=qmake
hostmakedepends="qt5-qmake"
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"
homepage="https://wkhtmltopdf.org/"
distfiles="https://github.com/wkhtmltopdf/wkhtmltopdf/archive/${version}.tar.gz"
checksum=dd466f5c2504670459f3b8265de5697b9054f077e2f3e392e5172b5133080edf
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" ${makedepends}"
fi
post_install() {
local dir
vmkdir usr
for dir in bin lib share include; do
[ -e $DESTDIR/usr/$dir ] && rmdir $DESTDIR/usr/$dir
mv -v $DESTDIR/$dir $DESTDIR/usr/$dir
done
}
wkhtmltopdf-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}