# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=newsraft
pkgver=0.25
pkgrel=0
pkgdesc="Feed reader with ncurses user interface"
url="https://codeberg.org/newsraft/newsraft"
arch="all"
license="ISC"
makedepends="
	curl-dev
	expat-dev
	gumbo-parser-dev
	ncurses-dev
	sqlite-dev
	yajl-dev
	"
subpackages="$pkgname-doc"
source="https://codeberg.org/newsraft/newsraft/archive/newsraft-$pkgver.tar.gz"
builddir="$srcdir/newsraft"

build() {
	make -e all
}

check() {
	./newsraft -v
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
354f3d5fb0e6d86782538da03408383b74443889aed19ae3599b1f286c76f6814ec406297dcdb505bbca6cf835440161a89066df0f21d52871c57dca288dfa23  newsraft-0.25.tar.gz
"
