summaryrefslogtreecommitdiff
path: root/pcr/chm2pdf/PKGBUILD
blob: a3ef7688399ed100c6710e44c4f7f95397598115 (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
# 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=2
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=("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
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python2 setup.py install --root="$pkgdir"
}