SUMMARY="A Scintilla-based text editor"
DESCRIPTION="Based on the popular framework for code highlighting, \
Scrittore provides a simplistic programmer's text editor."
HOMEPAGE="https://github.com/HaikuArchives/Scrittore"
COPYRIGHT="1998-2003 Scintilla authors.
       2011-2013 Haiku authors.
       "
REVISION="1"
LICENSE="Scintilla"
SOURCE_URI="git+https://github.com/HaikuArchives/Scrittore.git"

ARCHITECTURES="x86 !x86_64 ?arm ?ppc"

PROVIDES="
	Scrittore
	app:Scrittore
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:g++
	haiku_devel
	"

BUILD()
{
       cd scintilla/haiku
       make
}

INSTALL()
{
       mkdir -p $appsDir
       cp bin/scintilla-haiku $appsDir/Scrittore
       addAppDeskbarSymlink $appsDir/Scrittore
}
