mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-11 02:04:38 +08:00
28 lines
1008 B
Bash
28 lines
1008 B
Bash
|
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
|
||
|
# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
|
||
|
# Contributor: quantax -- contact via Arch Linux forum or AUR
|
||
|
|
||
|
pkgname=python2-html2text
|
||
|
pkgver=3.200.3
|
||
|
pkgrel=3
|
||
|
pkgdesc="Converts a page of HTML into clean, easy-to-read plain ASCII text."
|
||
|
arch=('any')
|
||
|
url="http://www.aaronsw.com/2002/html2text"
|
||
|
license=('GPL3')
|
||
|
depends=('python2')
|
||
|
makedepends=('python-distribute')
|
||
|
source=("http://pypi.python.org/packages/source/h/html2text/html2text-$pkgver.tar.gz")
|
||
|
md5sums=('98162c467ddafc1a63bff8db98f03d14')
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/html2text-$pkgver"
|
||
|
python2 setup.py install --root="$pkgdir" --optimize=1
|
||
|
find "$pkgdir" -name '*.py' -print0 |xargs -0 \
|
||
|
sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
|
||
|
-e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
|
||
|
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||
|
install -m755 "$pkgdir/usr/bin/html2text" "$pkgdir/usr/bin/html2text_py"
|
||
|
rm "$pkgdir/usr/bin/html2text"
|
||
|
}
|
||
|
|