# SliTaz package receipt.

PACKAGE="mypaint"
VERSION="1.0.0"
CATEGORY="graphics"
SHORT_DESC="A fast and easy painting application for digital painters, with brush dynamics"
MAINTAINER="slaxemulator@gmail.com"
WEB_SITE="http://mypaint.intilinux.com/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="http://download.gna.org/$PACKAGE/$TARBALL"

DEPENDS="pygtk python-numpy protobuf-python"
BUILD_DEPENDS="$DEPENDS pygtk-dev protobuf-dev python-dev scons swig"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	scons
	scons prefix=$DESTDIR/usr install
}

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