updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / wkhtmltoimage-static / PKGBUILD
blob162bfc01ed7e12dbfad6f40ea2ee7861d65d5b1e
1 # Maintainer: Eric Coleman <eric@colemando.com>
3 pkgname=wkhtmltoimage-static
4 pkgver="0.10.0_rc2"
5 pkgrel=2
6 pkgdesc="Simple shell utility to convert html to image using the webkit rendering engine, and qt (upstream static build)  Based off wkhtmltopdf-static by Evangelos Foutras"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/wkhtmltopdf/"
9 license=('GPL3')
10 options=('!strip')
11 if [ "$CARCH" = "i686" ]; then
12   _arch="i386"
13   sha1sums=('6fbe4e7e8a56c5df6111a13d1a17ceacf2ee0fbf')
14 else
15   _arch="amd64"
16   sha1sums=('fc4d7bfaf2cc24695c6f73f472ac240977fd1107')
18 source=(http://wkhtmltopdf.googlecode.com/files/wkhtmltoimage-$pkgver-static-$_arch.tar.bz2)
20 build() {
21   cd "$srcdir"
23   install -D wkhtmltoimage-$_arch "$pkgdir/usr/bin/wkhtmltoimage" || return 1
25   # Generate and install man page
26   install -d "$pkgdir/usr/share/man/man1"
27   ./wkhtmltoimage-$_arch --manpage >"$pkgdir/usr/share/man/man1/wkhtmltoimage.1"
30 # vim:set ts=2 sw=2 et: