mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-01 22:11:30 +01:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# 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 !s390x" # segfaults on s390x
|
|
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"
|