summaryrefslogtreecommitdiff
path: root/pcr/chm2pdf/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-31 00:45:32 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-31 00:45:32 -0300
commit925a12a43c2d8cda9f6c0d7e265c54694d5bc1fe (patch)
treeec16216fc7d336e99633432da7d19792a4d18ffa /pcr/chm2pdf/PKGBUILD
parent9a6d5dbc2102a9ee803539a64fbd81fa634ba31b (diff)
parentd4e56a4f98655a6e0cad3e0c6a91bdd9b5edc2d1 (diff)
downloadabslibre-925a12a43c2d8cda9f6c0d7e265c54694d5bc1fe.tar.gz
abslibre-925a12a43c2d8cda9f6c0d7e265c54694d5bc1fe.tar.bz2
abslibre-925a12a43c2d8cda9f6c0d7e265c54694d5bc1fe.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
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"
}