# SliTaz package receipt.

PACKED_SIZE="548.0K"
UNPACKED_SIZE="1.6M"
PACKAGE="lynx"
VERSION="2.8.8"
CATEGORY="network"
SHORT_DESC="Terminal-based text-only browser."
MAINTAINER="samuel_trassare@yahoo.com"
LICENSE="GPL2"
WEB_SITE="http://lynx.isc.org"
TARBALL="$PACKAGE$VERSION.tar.gz"
WGET_URL="http://lynx.isc.org/$PACKAGE$VERSION/$TARBALL"
HOST_ARCH="i486 arm"

# Will require build dep libtirpc after glibc is upgraded to 2.14.
DEPENDS="libssl ncurses zlib"
BUILD_DEPENDS="openssl-dev ncurses-dev zlib-dev"

# Rules to configure and make the package.
compile_rules()
{
	./configure $CONFIGURE_ARGS \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--enable-ipv6 \
		--enable-gnutls-compat \
		--enable-nls \
		--with-ssl \
		--with-gnutls \
		--with-zlib \
		--with-nss-compat &&
	make && 
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $install/usr/bin $fs/usr
	cp -a $install/etc $fs/
}

testsuite()
{
	readelf -h $install/usr/bin/lynx
}
