SUMMARY="A port of GTKTILink for BeOS"
DESCRIPTION="BeOSTiLink is the port of GTKTILink on BeOS, for connecting to Texas Instruments calculators."
HOMEPAGE="https://github.com/HaikuArchives/BeOSTiLink"
COPYRIGHT="Severin alias Surfkiller"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="ffaf66d0490f567c6363a7a2d924172e71b690a1"
SOURCE_URI="https://github.com/HaikuArchives/BeOSTiLink/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="9770931addb0972765204db4869e3ba96d90a43b0632c445b78e66971b04969b"
SOURCE_FILENAME="BeOSTiLink-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="BeOSTiLink-$srcGitRev"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	beostilink = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make -C src OBJ_DIR=objects
}

INSTALL()
{
	install -d $appsDir
	install -t $appsDir src/objects/BeOSTiLink

	addAppDeskbarSymlink $appsDir/BeOSTiLink
}
