blob: 4a293046c0906a2f9cda93fa27587affd45b162d (
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
|
# Maintainer (AUR): Giovanni Santini <giovannisantini93@yahoo.it>
# Contributor (AUR): Ognjen Vidovic <ognjen.vidovic at gmail dot com>
# Contributor (AUR): Mariusz Libera <mariusz.libera@gmail.com>
# Contributor (AUR): fes0
# Contributor (AUR): Rodrigo Coacci <rcoacci@gmail.com>
# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@hackers.camp>
# parabola changes and rationale:
# no changes.
pkgname=chm2pdf
pkgver=0.9.1
pkgrel=5
pkgdesc="A simple Python script that converts CHM files into PDF files."
arch=('any')
url="http://code.google.com/p/chm2pdf/"
license=('GPL2')
depends=('htmldoc' 'python2-pychm')
optdepends=('python2-beautifulsoup3: makes HTML files of CHM standards compliant')
changelog="Changelog"
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('204293c264c94bd17f56925d21d20b9f69a96136836198ba1a5014fe128ec3b0')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# python2 fix
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' chm2pdf
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --root="$pkgdir"
}
|