aboutsummaryrefslogtreecommitdiffstats
path: root/community/newsboat/APKBUILD
blob: 3680814107eb7cd59b81dee6b9d52c4885500259 (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.17.1
pkgrel=0
pkgdesc="RSS/Atom feed reader for text terminals"
url="https://newsboat.org/"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/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="5b6433f2f06c3f46d7c6165cf9663b57d3752a43397205a3ce0da6f715c94f866c9c28348171deb0fbd149e6a49b8843a8d1187d8628e5fe97187786a1e2bfe1  r2.17.1.tar.gz"