SUMMARY="Source code editor"
DESCRIPTION="
Microbe is a minimalistic programmers text and source code editor."
HOMEPAGE="https://github.com/aldeck/microbe"
COPYRIGHT="2011 Alexandre Deckner"
LICENSE="MIT"
REVISION="2"
srcGitRev="41f6ce8a5d96c96af9fb17eda1b466a5e9e0bfb1"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="d709553da3d018ab4696029fd42c4cfe1a7c5880338fa5a00dd6575a3793087c"
SOURCE_DIR="microbe-$srcGitRev"
PATCHES="microbe-20130728.patch"

ARCHITECTURES="all"

PROVIDES="
	microbe = $portVersion
	app:Microbe = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp objects/Microbe $appsDir/Microbe
	addAppDeskbarSymlink $appsDir/Microbe
}
