SUMMARY="LaTeX editor for Haiku"
DESCRIPTION="BeTeX is the premier TeX/LaTeX editor for BeOS/Haiku. With it you \
can create, compile and preview your latex documents all from within a single \
user-friendly interface."
HOMEPAGE="https://github.com/HaikuArchives/BeTeX/"
COPYRIGHT="2005 Tim de Jong, Brent Miszalski"
LICENSE="MIT"
REVISION="1"
srcGitRev="ee49071e000d94b6fb957215c0480767854dec68"
SOURCE_URI="https://github.com/HaikuArchives/BeTeX/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="ec9c16d63f9b58ac843c4acf1cd3890803e272ff353dda96478fec24506fc142"
SOURCE_DIR="BeTeX-$srcGitRev"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	betex = $portVersion
	app:BeTeX = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

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