SUMMARY="Save image files as ASCII text art"
DESCRIPTION="The AalibTranslator for Haiku allows you to save image files \
as ASCII text art."
HOMEPAGE="https://github.com/noryb009/AalibTranslator/"
COPYRIGHT="2013 Luke (noryb009)"
LICENSE="MIT"
REVISION="4"
srcGitRev="e302f911d3864e83aa4b65ba77531bea721c38d3"
SOURCE_URI="https://github.com/noryb009/AalibTranslator/archive/$srcGitRev.zip"
CHECKSUM_SHA256="77f9cb1ac1564151c99df3143cfb324b5d8bc34627be869fbf90accb3966f745"
SOURCE_DIR="AalibTranslator-$srcGitRev"

ARCHITECTURES="all ?x86"

PROVIDES="
	aalibtranslator = $portVersion
	app:AALIBTranslator = $portVersion
	"
REQUIRES="
	haiku
	lib:libaa
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libaa
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` TARGET_DIR=.
}

INSTALL()
{
	mkdir -p $addOnsDir/Translators
	cp AALIBTranslator $addOnsDir/Translators
}
