1 # Maintainer: Chris Brannon <cmbrannon79@gmail.com>
2 # Contributor: Dag Odenhall <dag.odenhall@gmail.com>
3 # Contributor: quantax -- contact via Arch Linux forum or AUR
5 pkgname=python-html2text
8 pkgdesc="Converts a page of HTML into clean, easy-to-read plain ASCII text."
10 url="http://www.aaronsw.com/2002/html2text"
13 makedepends=('python2-distribute')
14 source=("https://github.com/aaronsw/html2text/tarball/$pkgver/html2text-$pkgver.tar.gz")
21 # The tarball comes from github, so it extracts to a directory
22 # with a bloody SHA1 in its name. At least the download is
23 # verifyable with digests.
25 python2 setup.py install --root="$pkgdir" --optimize=1
26 find "$pkgdir" -name '*.py' -print0 |xargs -0 \
27 sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
28 -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
31 md5sums=('916b36bb84b88b1d96584b84db872efc')