mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-23 08:42:22 +01:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=html2text
|
|
pkgver=2.0.1
|
|
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="
|
|
b9116a93d82d28853acdd534320ca4bc27fd4b0d6b07c8513324bdf736d15e5322e8f06f5c640030e4f8fda2d87c643e80bbc2f7b3f0f6a600ea9531891054fb html2text-2.0.1.tar.gz
|
|
940d8cd8247250ad01d604e2ef44b95352a8114247c473ec8472485c5360143ac2218b6deebfedf85d065a23865ae5028eaaf4bd5ac61090643af813515bff99 path-config.patch
|
|
"
|