aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wkhtmltopdf/APKBUILD
blob: d9c888b95c8db0dfc148818ac2325704b2a9f845 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wkhtmltopdf
pkgver=0.12.3
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="802fa6789feda1819a1e911f0ef2a322  wkhtmltopdf-0.12.3.tar.gz"
sha256sums="0d55ad5d0582a8a62f3f108c41be071c9762ee970bdc6ed47a22067350e9d2ed  wkhtmltopdf-0.12.3.tar.gz"
sha512sums="1b307072cf3f7fbdd44bf5d9532236c29ad4d547368c9de1a8c7b6d702a97e7ae57062a68419987801f19a9b4eefda7acbca47aa1a6e4719919285e27b6666c7  wkhtmltopdf-0.12.3.tar.gz"