updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / princexml / PKGBUILD
blob9aefbc6d26accf8cfd9bd3effb17bfc2a117bf2c
1 # vim:set ts=2 sw=2 et:
2 # Maintainer: Kai Hendry <hendry@iki.fi>
3 # Contributor: Dogukan Korkmazturk <d.korkmazturk@gmail.com>
4 # Contributor: Arvid Ephraim Picciani <aep@exys.org>
5 # Contributor: Firmicus <francois.archlinux.org>
6 pkgname=princexml
7 pkgver=8.0
8 pkgrel=1
9 pkgdesc="converts XML and HTML into PDF documents using the CSS print spec"
10 arch=(i686 x86_64)
11 url="http://www.princexml.com"
12 license=('custom')
13 if test "$CARCH" = "i686"
14 then
15   _suffix=linux-static
16   source=(http://www.princexml.com/download/prince-${pkgver}-${_suffix}.tar.gz)
17   md5sums=('7fde8d74328a897383bc3d77475e0958')
18 else
19   _suffix=linux-amd64-static
20   source=(http://www.princexml.com/download/prince-${pkgver}-${_suffix}.tar.gz)
21   md5sums=('0bd8625a5ea0c6425b7b915399a70fd6')
24 build() {
25   mkdir -p $pkgdir/opt/prince
26   cd ${srcdir}/prince-${pkgver}-${_suffix}
27   cp -a lib/prince/* $pkgdir/opt/prince
29   mkdir -p $pkgdir/usr/bin
30   echo "#!/bin/sh" > $pkgdir/usr/bin/prince
31   echo "/opt/prince/bin/prince \$*" >> $pkgdir/usr/bin/prince
32   chmod +x $pkgdir/usr/bin/prince
34   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"