summaryrefslogtreecommitdiff
path: root/pcr/chm2pdf/PKGBUILD
diff options
context:
space:
mode:
authoraurelien <aurelien@xload.io>2014-05-30 20:00:03 +0200
committeraurelien <aurelien@xload.io>2014-05-30 20:00:03 +0200
commit786de412c6a142f547f8ab8eec6fc98bf331afe7 (patch)
tree5c13ffd8c8e8cb4155c93919d61d373d58ee5e88 /pcr/chm2pdf/PKGBUILD
parentac7547d79cbb08b0c94b7c60dface7d5c90eb0e3 (diff)
chm2pdf
Diffstat (limited to 'pcr/chm2pdf/PKGBUILD')
-rw-r--r--pcr/chm2pdf/PKGBUILD31
1 files changed, 19 insertions, 12 deletions
diff --git a/pcr/chm2pdf/PKGBUILD b/pcr/chm2pdf/PKGBUILD
index 44df24990..a3ef76883 100644
--- a/pcr/chm2pdf/PKGBUILD
+++ b/pcr/chm2pdf/PKGBUILD
@@ -1,22 +1,29 @@
-# Contributor (Arch): Rodrigo Coacci <rcoacci@gmail.com>
-# Contributor (Arch): fes0
-# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.IO>
+# Contributor: Ognjen Vidovic <ognjen.vidovic at gmail dot com>
+# Contributor: Mariusz Libera <mariusz.libera@gmail.com>
+# Contributor: fes0
+# Contributor: Rodrigo Coacci <rcoacci@gmail.com>
+# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@hackers.camp>
pkgname=chm2pdf
pkgver=0.9.1
-pkgrel=1
+pkgrel=2
pkgdesc="A simple Python script that converts CHM files into PDF files."
arch=('any')
-license=('GPL2')
url="http://code.google.com/p/chm2pdf/"
-depends=('chmlib' 'python2' 'python2-pychm' 'htmldoc')
-optdepends=('beautiful-soup: A Python HTML/XML parser designed for quick turnaround projects like screen-scraping')
-source=('http://chm2pdf.googlecode.com/files/chm2pdf-0.9.1.tar.gz')
+license=('GPL2')
+depends=('htmldoc' 'python2-pychm')
+optdepends=('python2-beautifulsoup3: makes HTML files of CHM standards compliant')
+changelog=Changelog
+source=("http://chm2pdf.googlecode.com/files/chm2pdf-${pkgver}.tar.gz")
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # python2 fix
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' chm2pdf
+}
-build() {
- sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $srcdir/$pkgname-$pkgver/chm2pdf
- cd $srcdir/$pkgname-$pkgver
- python2 setup.py install --root=$startdir/pkg
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py install --root="$pkgdir"
}