aboutsummaryrefslogtreecommitdiffstats
path: root/main/newsboat/APKBUILD
blob: 97f0a258ddfd6c4be324db2d8d893b5a8a4ab685 (plain) (blame)
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
# Maintainer: Mike Crute <mike@crute.us>
pkgname=newsboat
pkgver=2.12
pkgrel=0
pkgdesc="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 libressl-dev libxml2-dev
	ncurses-dev perl sqlite-dev stfl-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/newsboat/newsboat/archive/r$pkgver.tar.gz"

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="64a6847777d25fb7fc0842f3280c800a65c2e66f955a3df5de657b81ca88a6bff8e3f454e69e4d56fe07c5d3a2d545ce17070f26de50e35c572e671caf6a4a9f  r2.12.tar.gz"