# SliTaz package receipt.

PACKAGE="mp"
VERSION="5.1.3"
CATEGORY="development"
SHORT_DESC="A text editor for programmers"
MAINTAINER="allan316@gmail.com"
DEPENDS="gtk+"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://triptico.com/software/mp.html"
WGET_URL="http://triptico.com/download/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	mkdir -p $PWD/_pkg/usr/bin
	./config.sh \
		--prefix=/usr \
		--without-qt4 \
		$CONFIGURE_ARGS
	make && make DESTDIR=$PWD/_pkg install
}

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