aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/html2text/APKBUILD38
-rw-r--r--community/html2text/path-config.patch15
2 files changed, 53 insertions, 0 deletions
diff --git a/community/html2text/APKBUILD b/community/html2text/APKBUILD
new file mode 100644
index 0000000000..99392d8cfc
--- /dev/null
+++ b/community/html2text/APKBUILD
@@ -0,0 +1,38 @@
+# 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"
+}
+
+md5sums="b6649dc6d54418ef4527ea6be580379a html2text-1.3.2a.tar.gz
+33f7de1a68048465a533018eac6d7868 path-config.patch"
+sha256sums="d8c5660a2bff7b0b7e85a83bc146f5669fd20a85934f793c543dc6efea423991 html2text-1.3.2a.tar.gz
+fa4fe038bf8897e2f57eb038c949cbf1deb7ac68ffda72bfe8391361fa6d14ba path-config.patch"
+sha512sums="fac0e06211f699ea69cd9c9ea9347758e57402e56aba64cfa3a46446f1278e4ffc6953c7b3fef5ed5617200fda7c57a81d26dec9eb6f3e58d8223a1631b28dd9 html2text-1.3.2a.tar.gz
+bf4387d12727016c40d9cbad3b4896443f1253071eba6b2f929435164b1d3cb4adbd3d5b8db3f0905a7b7b7e4468be274e950b704179ef6f083810903fb1aa84 path-config.patch"
diff --git a/community/html2text/path-config.patch b/community/html2text/path-config.patch
new file mode 100644
index 0000000000..6c88ef3d56
--- /dev/null
+++ b/community/html2text/path-config.patch
@@ -0,0 +1,15 @@
+diff --git a/Makefile.in b/Makefile.in
+index e1a9f27..1feb56f 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -29,8 +29,8 @@ BISONXX = bison++
+ YFLAGS =
+
+ INSTALLER = install
+-BINDIR = /usr/local/bin
+-MANDIR = /usr/local/man
++BINDIR = /usr/bin
++MANDIR = /usr/share/man
+ DOCDIR = /usr/share/doc/html2text
+
+ CXX = @CXX@