#Slitaz package receipt

PACKAGE="joe"
VERSION="3.7"
CATEGORY="utilities"
SHORT_DESC="Joe's Own editor is a fully featured terminal based screen editor"
MANTAINER="threarth@yahoo.it"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://joe-editor.sourceforge.net/"
WGET_URL="http://downloads.sourceforge.net/project/joe-editor/JOE%20sources/$PACKAGE-$VERSION/$PACKAGE-$VERSION.tar.gz"

DEPENDS="ncurses"
BUILD_DEPENDS="ncurses-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --sysconfdir=/etc \
		$CONFIGURE_ARGS &&
	make && make install
}

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