# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=links
pkgver=2.15
pkgrel=0
pkgdesc="Web browser running in both graphics and text mode"
url="http://atrey.karlin.mff.cuni.cz/~clock/twibright/links"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
depends=""
makedepends="bzip2-dev libressl-dev zlib-dev"
source="http://$pkgname.twibright.com/download/$pkgname-$pkgver.tar.bz2"

build () {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-javascript \
		--disable-graphics \
		--without-x \
		--disable-nls
	make
}

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

sha512sums="11e66fec57a7b33be0b9d9c5e51e042cde92536b132c5484eb6cc8285b6f0a28b023d45a03e5a44810beb8d4279f6f6c8c9e694f10e4eccacd3dbe9ee7108706  links-2.15.tar.bz2"
