aboutsummaryrefslogtreecommitdiffstats
path: root/main/newsboat/APKBUILD
blob: 624a448398aad1c4990cab19e7d2a9e001ba9cbb (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
37
38
39
40
41
42
43
44
45
# Maintainer: Mike Crute <mike@crute.us>
pkgname=newsboat
pkgver=2.10.2
pkgrel=0
pkgdesc="An 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
    libxml2-dev
    ncurses-dev
    libressl-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="ca7933457f1b003f7df0e4bb5d94ad2504bd478e7002c550cb1757ab9d663ded5fd694b111751c5756560d4d55dde4357400dffc09505df1ee10fdf2790faf1e  r2.10.2.tar.gz"