SUMMARY="A painting and image-processing program"
DESCRIPTION="ArtPaint is a program for painting and image-processing that \
won a Be's Masters Award in 1998.

The main features of ArtPaint include a comprehensive set of painting-tools \
and real-time preview for many image-manipulating operations.
The key design principle has been to let the user see what they are doing \
instead of just forcing them to type in some numbers and then hoping that \
the result will not be too far from the expected."
HOMEPAGE="https://github.com/HaikuArchives/ArtPaint"
COPYRIGHT="2003 Heikki Suhonen
	2009 Karsten Heimrich
	2013-2017 HaikuArchives team"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://github.com/HaikuArchives/ArtPaint/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="19533e2f6029eae6cb5197f5c119580829b30203abc6d05dac98a7d591366f0e"
SOURCE_DIR="ArtPaint-$portVersion"

ARCHITECTURES="!all x86_gcc2 ?x86"

PROVIDES="
	artpaint = $portVersion
	app:ArtPaint = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	./build.sh $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/ArtPaint
	cp -r dist/* $appsDir/ArtPaint
	addAppDeskbarSymlink $appsDir/ArtPaint/ArtPaint
}
