# SliTaz package receipt.

PACKAGE="rlwrap"
VERSION="0.37"
CATEGORY="misc"
SHORT_DESC="Input history wrapper using GNU readline."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://utopia.knoware.nl/~hlub/uck/rlwrap/"
WGET_URL="${WEB_SITE}$TARBALL"

BUILD_DEPENDS="readline-dev ncurses-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr \
		--localstatedir=/var \
	$CONFIGURE_ARGS &&
	make && make DESTDIR=$DESTDIR install
}

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