aboutsummaryrefslogtreecommitdiffstats
path: root/community/newsboat/APKBUILD
blob: 0781454f5b8ea0d8567666a50af8832db0a44f7d (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
36
37
38
39
# Maintainer: Mike Crute <mike@crute.us>
pkgname=newsboat
pkgver=2.20.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="asciidoctor 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
	json-c-0.14.patch
	"

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="c7a272a4185da4221b767267ee52f61bc50d8b932cdc7076517b31b0df17956021362c26b45374304a21fc32b4efbabd6d945be3cfef1180d3bcffb1738d434f  r2.20.1.tar.gz
6b5bbea2b46542ba093a72f21851745018ec2abf35d364e723bd4e37092612593c9d2b6146784ea6ded1a26322c824804cae14d25e2e49dc945f0f899d96252e  json-c-0.14.patch"