updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / html2text-with-utf8 / PKGBUILD
bloba193d880ba1d725b0124dfb8c54300718f6e5cae
1 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
2 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
4 pkgname=html2text-with-utf8
5 _pkgname=html2text
6 pkgver=1.3.2a
7 pkgrel=1
8 pkgdesc="A HTML to text converter with utf-8 patch"
9 arch=('i686' 'x86_64')
10 url="http://www.mbayer.de/html2text"
11 license=('GPL2')
12 depends=('gcc-libs')
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')
19 build() {
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
25         ./configure
26         make || return 1
29 package() {
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