wok view wkhtmltopdf/receipt @ rev 17163
Add wkhtmltopdf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 18 12:48:08 2014 +0200 (2014-09-18) |
parents | |
children | 82fa5f95bda8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wkhtmltopdf"
4 VERSION="0.12.1.1"
5 CATEGORY="misc"
6 SHORT_DESC="Tools to render HTML into PDF and various image formats."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://wkhtmltopdf.org/"
11 WGET_URL="https://github.com/wkhtmltopdf/wkhtmltopdf/archive/$VERSION.tar.gz"
13 DEPENDS="libQtWebkit libQtSvg libQtXml libQtGui libQtNetwork libQtCore"
14 BUILD_DEPENDS="wget python qmake Qt4-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cat > qt/configure <<EOT
20 #!/bin/sh
22 cd \$(dirname \$0)
23 cd ..
24 qmake wkhtmltopdf.pro
25 EOT
26 chmod +x qt/configure
27 scripts/build.py posix-local
28 make &&
29 make INSTALL_ROOT=$DESTDIR/usr install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 }