desktop/html2text/PKGBUILD
Neofytos Kolokotronis 57cdda0d99 html2text: rebuilt
2016-02-23 21:35:14 +01:00

34 lines
1.0 KiB
Bash

# Contributions from AUR: https://aur.archlinux.org/packages/html2text-with-utf8/
pkgname=html2text
pkgver=1.3.2a
pkgrel=9
pkgdesc="A HTML to text converter"
arch=('x86_64')
url="http://www.mbayer.de/html2text"
license=('GPL2')
depends=('gcc-libs')
source=("http://www.mbayer.de/html2text/downloads/${pkgname}-${pkgver}.tar.gz"
"http://www.mbayer.de/html2text/downloads/patch-utf8-${pkgname}-${pkgver}.diff")
sha256sums=('000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392'
'be4e90094d2854059924cb2c59ca31a5e9e0e22d2245fa5dc0c03f604798c5d1')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 < "${srcdir}/patch-utf8-html2text-1.3.2a.diff"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure
make -s -j $(nproc)
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dpm755 'html2text' "${pkgdir}/usr/bin/html2text"
install -Dpm644 'html2text.1.gz' "${pkgdir}/usr/share/man/man1/html2text.1.gz"
install -Dpm644 'html2textrc.5.gz' "${pkgdir}/usr/share/man/man5/html2textrc.5.gz"
}