mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-02 19:11:47 +02:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# 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"
|