summaryrefslogtreecommitdiff
path: root/community/python2-rst2pdf
diff options
context:
space:
mode:
Diffstat (limited to 'community/python2-rst2pdf')
-rw-r--r--community/python2-rst2pdf/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/python2-rst2pdf/PKGBUILD b/community/python2-rst2pdf/PKGBUILD
new file mode 100644
index 000000000..b33bcdea3
--- /dev/null
+++ b/community/python2-rst2pdf/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 54723 2011-08-23 21:08:22Z 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
+}