# Maintainer: Natanael Copa pkgname=wkhtmltopdf pkgver=0.12.2.4 pkgrel=0 pkgdesc="Simple shell utility to convert html to pdf" url="http://wkhtmltopdf.org/" arch="all" license="GPLv3+" depends="" depends_dev="" makedepends="$depends_dev qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtsvg-dev qt5-qtxmlpatterns-dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/wkhtmltopdf/wkhtmltopdf/archive/$pkgver.tar.gz" _builddir="$srcdir"/wkhtmltopdf-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" qmake-qt5 -makefile && make || return 1 } package() { cd "$_builddir" make install INSTALL_ROOT="$pkgdir"/usr || return 1 } md5sums="c8555f1c66b61cb11c6c9ff37d0d2280 wkhtmltopdf-0.12.2.4.tar.gz" sha256sums="dbb0166e9ce191e787e909601e4cdbae71069f29693362edf5cd7d4d44447288 wkhtmltopdf-0.12.2.4.tar.gz" sha512sums="9d1854d9bbda57d099e1d9db87255db5f20828c2ba6828f40a1f206118bf668b22b2a2394bd4d8a836c3f65c130767c1e4b639946757ec6370320373a6933dca wkhtmltopdf-0.12.2.4.tar.gz"