summaryrefslogtreecommitdiff
path: root/community/python2-rst2pdf/PKGBUILD
blob: b81b90874be13e81179533cd953788e60bafaa6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 54721 2011-08-23 21:07:42Z angvp $
# Maintainer: Angel Velasquez <angvp@archlinux.org> 
# Contributor: Roberto Alsina <ralsina@kde.org>
pkgname=python2-rst2pdf
pkgver=0.16
pkgrel=10
pkgdesc="Create PDFs from simple text markup, no LaTeX required."
arch=('i686' 'x86_64')
url="http://rst2pdf.googlecode.com"
license=('MIT')
depends=('python2' 'setuptools' 'docutils' 'python-reportlab')
source=(http://rst2pdf.googlecode.com/files/rst2pdf-$pkgver.tar.gz LICENSE.txt
        rst2pdf-0.16_docutils-0.8.patch)
optdepends=('uniconvertor: vector images support'
            'python-svglib: some SVG support'
            'inkscape: best SVG support'
	        'python-wordaxe: hyphenation'
            'python2-pygments: Syntax Highlighting' 
            'pil: non-JPEG bitmap image formats'
            'pythonmagick: more image formats')
md5sums=('67b8bfac3ac55a85a09fc35ba98794d3'
         '416f8046c66b9476cdbacda69a673afe'
         'fcd21288b01b35f654579670dd8c7a02')

build() {
  cd $srcdir/rst2pdf-$pkgver
  patch -p0 < ../rst2pdf-0.16_docutils-0.8.patch
  python2 setup.py install --root=$pkgdir 
}

package() {
  cd $srcdir/rst2pdf-$pkgver
  install -D ../LICENSE.txt $pkgdir/usr/share/licenses/python-rst2pdf/COPYING
  (cd doc && rst2man rst2pdf.txt rst2pdf.1)
  install -D doc/rst2pdf.1 $pkgdir/usr/share/man/man1/rst2pdf.1
  gzip $pkgdir/usr/share/man/man1/rst2pdf.1
}