summaryrefslogtreecommitdiff
path: root/pcr/chm2pdf/PKGBUILD
diff options
context:
space:
mode:
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"
}