1 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
2 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
4 pkgname=html2text-with-utf8
8 pkgdesc="A HTML to text converter with utf-8 patch"
10 url="http://www.mbayer.de/html2text"
13 conflicts=('html2text')
14 source=(http://www.mbayer.de/html2text/downloads/${_pkgname}-${pkgver}.tar.gz
15 http://www.mbayer.de/html2text/downloads/patch-utf8-${_pkgname}-${pkgver}.diff)
16 md5sums=('6097fe07b948e142315749e6620c9cfc'
17 '0f8113f0e447a2c65bab5eaacb5f513e')
20 cp ${srcdir}/patch-utf8-${_pkgname}-${pkgver}.diff ${srcdir}/${_pkgname}-${pkgver}
21 cd ${srcdir}/${_pkgname}-${pkgver}
23 patch -p1 < patch-utf8-html2text-1.3.2a.diff
30 cd ${srcdir}/${_pkgname}-${pkgver}
32 install -D -m 755 html2text ${pkgdir}/usr/bin/html2text
33 install -D -m 644 html2text.1.gz ${pkgdir}/usr/share/man/man1/html2text.1.gz
34 install -D -m 644 html2textrc.5.gz ${pkgdir}/usr/share/man/man5/html2textrc.5.gz