# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=snownews
pkgver=1.5.12
pkgrel=6
pkgdesc="Snownews is a text mode RSS/RDF newsreader"
url="https://kiza.eu/software/snownews/"
arch="all"
license="GPL"
depends="ncurses"
depends_dev="libintl libressl-dev perl ncurses-dev libxml2-dev readline-dev gettext-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-lang $pkgname-doc"
source="https://kiza.eu/media/software/snownews/${pkgname}-${pkgver}.tar.gz
	configure.patch"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
        ./configure --prefix=/usr
        make
}

package() {
	cd "$builddir"
        make DESTDIR="$pkgdir" install
}

sha512sums="7a7ccd5ea57f8bbb73f1429ab931a38203e858c74a383c5347e66088b84f6a7240feeee99e179687ce0a7a89c6c1406ce20d6c5d6771d25a0a0301fa5526e220  snownews-1.5.12.tar.gz
d7ed00a401c1963a5619b0b221ae354e5a8a8423f75313e906f43b5a64c099fac8239d7eb1a34d47c284e96b9ad2965f1ecdad58fb28101f7397143847a5e230  configure.patch"
