aboutsummaryrefslogtreecommitdiffstats
path: root/main/newsboat
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-12-15 03:58:17 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-12-18 08:50:37 +0000
commita6cbc7a0094d2fb9495fb36f5c09d902a6547249 (patch)
tree2c3351d467141dae1ec7ed47fb1891034688a1ad /main/newsboat
parent8e0c08225c27e3d2a02048541d3835ea644424b2 (diff)
downloadaports-a6cbc7a0094d2fb9495fb36f5c09d902a6547249.tar.bz2
aports-a6cbc7a0094d2fb9495fb36f5c09d902a6547249.tar.xz
main/newsboat: new aport
Diffstat (limited to 'main/newsboat')
-rw-r--r--main/newsboat/APKBUILD50
-rw-r--r--main/newsboat/musl_const.patch11
-rw-r--r--main/newsboat/newsbeuter-2.10.1-ncurses6.patch12
3 files changed, 73 insertions, 0 deletions
diff --git a/main/newsboat/APKBUILD b/main/newsboat/APKBUILD
new file mode 100644
index 0000000000..c1375ac008
--- /dev/null
+++ b/main/newsboat/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Mike Crute <mike@crute.us>
+pkgname=newsboat
+pkgver=2.10.1
+pkgrel=0
+pkgdesc="An RSS/Atom feed reader for text terminals"
+url="https://newsboat.org/"
+arch="all"
+license="MIT"
+replaces="newsbeuter"
+provides="newsbeuter=$pkgver-r$pkgrel"
+makedepends="
+ asciidoc
+ curl-dev
+ gettext-dev
+ json-c-dev
+ libxml2-dev
+ ncurses-dev
+ libressl-dev
+ perl
+ sqlite-dev
+ stfl-dev
+ "
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://github.com/newsboat/newsboat/archive/r$pkgver.tar.gz
+ newsbeuter-2.10.1-ncurses6.patch
+ musl_const.patch
+ "
+
+builddir="$srcdir/$pkgname-r$pkgver"
+
+build() {
+ cd "$builddir"
+ ./config.sh
+ echo "LDFLAGS+=-lintl" >> config.mk
+ make prefix=/usr
+}
+
+check() {
+ cd "$builddir"
+ make prefix=/usr test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" prefix=/usr install
+}
+
+sha512sums="38fa67fce209b1e80173749de145317696153c6d53ecc6a6200f34b2f9812d9578738fdc4f8ead64b0a47d2d2a75b79fbadf4057d7187f49540fde399aaa7b62 r2.10.1.tar.gz
+337f2d9700b80a4abdfa9db69cd8242cf7465607fbf3e39aff33594c04f2132c13d4b2348ccc1868cd898780663e10ee5e59d45fe58e7d4a01723bced10c9af9 newsbeuter-2.10.1-ncurses6.patch
+e0accc30c078c068f3e2a90e2b28c1759856ae4310ebadc5591fa008333c346afff8d874c3a62b3310c29cbf68194fd737bb43d8fc03504dd2ba866ff8ea199f musl_const.patch"
diff --git a/main/newsboat/musl_const.patch b/main/newsboat/musl_const.patch
new file mode 100644
index 0000000000..19046387e3
--- /dev/null
+++ b/main/newsboat/musl_const.patch
@@ -0,0 +1,11 @@
+--- a/src/utils.cpp
++++ b/src/utils.cpp
+@@ -346,7 +346,7 @@
+ * of all the Unix-like systems around there, only Linux/glibc seems to
+ * come with a SuSv3-conforming iconv implementation.
+ */
+-#if !(__linux) && !defined(__GLIBC__) && !defined(__APPLE__) \
++#if !(__linux__) && !defined(__GLIBC__) && !defined(__APPLE__) \
+ && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ const char * inbufp;
+ #else
diff --git a/main/newsboat/newsbeuter-2.10.1-ncurses6.patch b/main/newsboat/newsbeuter-2.10.1-ncurses6.patch
new file mode 100644
index 0000000000..cf9ae053c5
--- /dev/null
+++ b/main/newsboat/newsbeuter-2.10.1-ncurses6.patch
@@ -0,0 +1,12 @@
+--- a/config.sh
++++ b/config.sh
+@@ -108,7 +108,8 @@
+ check_custom "ncurses5.4" "ncurses5.4-config" || fail "ncurses5.4"
+ elif [ `uname -s` != "OpenBSD" ]; then
+ check_pkg "ncursesw" || \
+- check_custom "ncursesw5" "ncursesw5-config" || fail "ncursesw"
++ check_custom "ncursesw5" "ncursesw5-config" || \
++ check_custom "ncursesw6" "ncursesw6-config" || fail "ncursesw"
+ fi
+ check_ssl_implementation
+ all_aboard_the_fail_boat