desktop/html2text/PKGBUILD

34 lines
1.0 KiB
Bash
Raw Normal View History

2016-02-24 04:35:14 +08:00
# Contributions from AUR: https://aur.archlinux.org/packages/html2text-with-utf8/
2016-02-24 04:29:14 +08:00
pkgname=html2text
pkgver=1.3.2a
2016-02-24 04:35:14 +08:00
pkgrel=9
2016-02-24 04:29:14 +08:00
pkgdesc="A HTML to text converter"
2016-02-24 04:35:14 +08:00
arch=('x86_64')
2016-02-24 04:29:14 +08:00
url="http://www.mbayer.de/html2text"
license=('GPL2')
depends=('gcc-libs')
2016-02-24 04:35:14 +08:00
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"
}
2016-02-24 04:29:14 +08:00
build() {
2016-02-24 04:35:14 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2016-02-24 04:29:14 +08:00
./configure
2016-02-24 04:35:14 +08:00
make -s -j $(nproc)
2016-02-24 04:29:14 +08:00
}
2016-02-24 04:35:14 +08:00
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"
}