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>
9 pkgdesc="converts XML and HTML into PDF documents using the CSS print spec"
11 url="http://www.princexml.com"
13 if test "$CARCH" = "i686"
16 source=(http://www.princexml.com/download/prince-${pkgver}-${_suffix}.tar.gz)
17 md5sums=('7fde8d74328a897383bc3d77475e0958')
19 _suffix=linux-amd64-static
20 source=(http://www.princexml.com/download/prince-${pkgver}-${_suffix}.tar.gz)
21 md5sums=('0bd8625a5ea0c6425b7b915399a70fd6')
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"