# Compiling Time: 0.43 SBU
# Maintainer: crazy <crazy@frugalware.org>

pkgname=elinks
pkgver=0.12pre6
pkgrel=2
pkgdesc="An advanced and well-established feature-rich text mode web browser"
url="http://elinks.or.cz/"
depends=('openssl>=1.0.1' 'gpm>=1.20.6-7' 'bzip2' 'libidn>=1.30' \
	'expat>=2.0.1-5' 'ncurses>=5.9-1' 'perl>=5.14.1-3')
groups=('network')
archs=('i686' 'x86_64' 'arm')
up2date="lynx -dump http://elinks.or.cz/download.html|grep 'd/elinks-0.'|sed 's/.*-\(.*\).t.*/\1/'| head -1"
source=(http://elinks.or.cz/download/$pkgname-$pkgver.tar.bz2)
sha1sums=('3517795e8a390cb36ca249a5be6514b9784520a5')

build()
{
	Fcd
	Fmake --disable-smb \
		--without-x \
		--enable-cgi \
		--enable-leds \
		--enable-fastmem \
		--without-lua \
		--exec-prefix=/usr \
		--enable-bittorrent \
		--enable-nntp \
		--with-perl \
		--with-bzlib \
		--enable-html-highlight \
		--enable-256-colors \
		--enable-finger

	make DESTDIR=$Fdestdir install || Fdie
	Frm usr/share/locale/locale.alias
}


# optimization OK
