aboutsummaryrefslogtreecommitdiffstats
path: root/community/newsboat/APKBUILD
blob: d9dc975534cb822263a898b511ac1777dec2ccd7 (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.18
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="0e76d322d2b21085f70ff7af5e4e29ccff28218e098559130f10d429ace79e1d63a7c58e444c0f46460c21583dac99899ccaaced069867a42d0ac464dc796a8d  r2.18.tar.gz"