SUMMARY="An improved version of StyledEdit"
DESCRIPTION="StyledEditPlus is an improved version of Haiku's original \
\"notepad\" application, which comes with new features such as an easily \
accessible toolbar and a bullet point formatting."
HOMEPAGE="https://github.com/Paradoxianer/StyledEditPlus"
COPYRIGHT="2015 Matthias \"Paradoxianer\" Lindner"
LICENSE="MIT"
REVISION="1"
srcGitRev="e6442e0e036428eeba6d33322b99856f1e158e00"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="72115beb196882234e414fcab05c7040870b643d978dfc57aecd26f86dd7cd47"
SOURCE_FILENAME="StyledEditPlus-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="StyledEditPlus-$srcGitRev"
srcGitRev_2="52384217f32eb93f0a6b2d04453bb68f561e39c0"
SOURCE_URI_2="https://github.com/Paradoxianer/FontPanel/archive/$srcGitRev_2.tar.gz"
CHECKSUM_SHA256_2="51732271c81e70dbc65fa6c2dbcf9af2b117b36affe5f17f04b71286939c01b0"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	stylededitplus = $portVersion
	app:StyledEditPlus = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cp -rd $sourceDir2/FontPanel-$srcGitRev_2/* \
		src/ui/Panels/FontPanel/
	make OBJ_DIR=objects -C src
}

INSTALL()
{
	install -d $appsDir
	install -t $appsDir src/objects/StyledEditPlus
	addAppDeskbarSymlink $appsDir/StyledEditPlus
}
