aboutsummaryrefslogtreecommitdiffstats
path: root/community/newsboat/APKBUILD
blob: d252b395e3479eadc4609f9053fb6e84188cc031 (plain)
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
35
36
# Maintainer: Mike Crute <mike@crute.us>
pkgname=newsboat
pkgver=2.16.1
pkgrel=0
pkgdesc="RSS/Atom feed reader for text terminals"
url="https://newsboat.org"
arch="x86_64" # limited by cargo
license="MIT"
replaces="newsbeuter"
provides="newsbeuter=$pkgver-r$pkgrel"
makedepends="asciidoc cargo curl-dev gettext-dev json-c-dev libxml2-dev
	ncurses-dev sqlite-dev stfl-dev xz"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/newsboat/newsboat/archive/r$pkgver.tar.gz"

builddir="$srcdir/$pkgname-r$pkgver"

export GETTEXT_BIN_DIR=/usr/bin
export GETTEXT_LIB_DIR=/usr/lib/gettext
export GETTEXT_INCLUDE_DIR=/usr/include

build() {
	./config.sh
	echo "LDFLAGS+= -lintl" >> config.mk
	make prefix=/usr
}

check() {
	make prefix=/usr test
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="9233a1e46f844ec6909ec9527745d90654faa150506637e6d1eaa87e26ad8a9f30abe84167f41aa6a17370b461d590895f5a2525470b3a15e69000d496552c96  r2.16.1.tar.gz"