aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wkhtmltopdf/APKBUILD
blob: 431baa52c73e362ee78b6817ea5772103a8513bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wkhtmltopdf
pkgver=0.12.1
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="http://downloads.sourceforge.net/project/wkhtmltopdf/$pkgver/wkhtmltox-$pkgver.tar.bz2
	qprint.patch"

_builddir="$srcdir"/wkhtmltox-$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 -makefile && make  || return 1
}

package() {
	cd "$_builddir"
	make install INSTALL_ROOT="$pkgdir"/usr || return 1
}

md5sums="6960f2e45469de41314f1a688b1fdaf0  wkhtmltox-0.12.1.tar.bz2
b39477573f9fb162f4dfcf4f7db5b07b  qprint.patch"
sha256sums="383041db30d6e08b9a6f126193a9e120e2791ff99005c39b1d0adacd53e2faca  wkhtmltox-0.12.1.tar.bz2
dfe8b8e212c7888b1a7c2d9724c2a6839592b2909953d9c5c155da25bef2fc0f  qprint.patch"
sha512sums="b9fd1a3bba4daeb5cd30ad4e31cafa206a935a0bd9cf3666beebe5685acbe4b6c7a34ca7282b4d49ee607ca7153afabb4d5e3005572e64688e90bef750fe8e71  wkhtmltox-0.12.1.tar.bz2
0358742f9e7b8d5030e7ed8dc6bcfcb73a570ae4824d48e5e961b707e48617ce6c0417072008abb8d68e56b9fd6f5a271417df5d904bde00f41a36321148be3f  qprint.patch"