36 lines
891 B
Bash
36 lines
891 B
Bash
|
# Template file for 'wkhtmltopdf'
|
||
|
pkgname=wkhtmltopdf
|
||
|
version=0.12.4
|
||
|
revision=1
|
||
|
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() {
|
||
|
mkdir -p $DESTDIR/usr
|
||
|
dirs="bin lib share include"
|
||
|
for dir in $dirs; do
|
||
|
mv $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
|
||
|
}
|
||
|
}
|