aboutsummaryrefslogtreecommitdiffstats
path: root/community/newsboat/APKBUILD
blob: e7c0e0607a2aa34da5af13701837c39d6f53bc82 (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
# Maintainer: Mike Crute <mike@crute.us>
pkgname=newsboat
pkgver=2.21
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 libxml2-dev
	ncurses-dev sqlite-dev stfl-dev xz json-c-dev"
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="06f6f4b5f55cb46d7e03df106049ba187435aaa2b569a4e6a8ab9526f5b11dbd9664279a3338515c7af37583f2ad6ccbaa06fdb2237aba1501e2c6d7b62a08af  r2.21.tar.gz"