# Contributor: Jeremy O'Brien <neutral@fastmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=links-graphics
pkgver=2.30
pkgrel=0
pkgdesc="Web browser running in both graphics and text mode"
url="http://links.twibright.com/"
arch="all"
license="GPL-2.0-or-later WITH OpenSSL-Exception"
makedepends="
	bzip2-dev
	jpeg-dev
	libevent-dev
	libpng-dev
	openssl-dev
	xorg-server-dev
	zlib-dev
	zstd-dev
	"
subpackages="$pkgname-doc"
source="http://links.twibright.com/download/links-$pkgver.tar.bz2"
builddir="$srcdir/links-$pkgver"
options="!check"  # No test suite.

provides="links"
provider_priority=20

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-javascript \
		--enable-graphics \
		--with-x \
		--x-includes=/usr/include/X11/ \
		--x-libraries=/usr/lib/xorg/ \
		--disable-nls
	make
}

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

sha512sums="
265f71fcd80a160b48b9572c4ca326c26a45032fbca69be3f3b6e60af136152daa22884e097ef719db950607425eb0e8c7f8714047f2476000301fd2b76c3806  links-2.30.tar.bz2
"
