aboutsummaryrefslogtreecommitdiffstats
path: root/community/html2text/APKBUILD
blob: 8be71080851d36b653da8a9afe11453d1aa55e90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=html2text
pkgver=2.0.0
pkgrel=0
pkgdesc="html2text is a command line utility, written in C++, that converts HTML documents into plain text."
url="http://www.mbayer.de/html2text/"
arch="all"
license="GPL"
makedepends="bison bash"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/grobian/html2text/archive/v$pkgver.tar.gz
path-config.patch"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	install -Dm755 "html2text" "$pkgdir"/usr/bin/html2text
	install -Dm644 "html2text.1" "$pkgdir"/usr/share/man/man1/html2text.1
	install -Dm644 "html2textrc.5" "$pkgdir"/usr/share/man/man5/html2textrc.5
}

sha512sums="94f2cf3f5085307cc2cf5e264b35621029e57142d6e4d832eee2c447860338c947687be5e8c81367696b0b04432a44537a1545a820991c621b4036393ad6f4e8  html2text-2.0.0.tar.gz
940d8cd8247250ad01d604e2ef44b95352a8114247c473ec8472485c5360143ac2218b6deebfedf85d065a23865ae5028eaaf4bd5ac61090643af813515bff99  path-config.patch"