aboutsummaryrefslogtreecommitdiffstats
path: root/community/html2text/APKBUILD
blob: 6b122d61036ce8804c9de5eaac03e632fbe4dfa9 (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
32
33
34
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=html2text
pkgver=1.3.2a
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"
depends=""
depends_dev=""
makedepends="$depends_dev bison"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/marado/$pkgname/archive/${pkgver}-17.tar.gz
	path-config.patch"

builddir="$srcdir"/$pkgname-${pkgver}-17

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make || return 1
}

package() {
	cd "$builddir"
	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"
}

sha512sums="fac0e06211f699ea69cd9c9ea9347758e57402e56aba64cfa3a46446f1278e4ffc6953c7b3fef5ed5617200fda7c57a81d26dec9eb6f3e58d8223a1631b28dd9  html2text-1.3.2a.tar.gz
bf4387d12727016c40d9cbad3b4896443f1253071eba6b2f929435164b1d3cb4adbd3d5b8db3f0905a7b7b7e4468be274e950b704179ef6f083810903fb1aa84  path-config.patch"