SUMMARY="Tetris client and server"
DESCRIPTION="BeNetTris is a multiplayer Tetris game that you can play \
with your friends! BeNetTris is client and server compatible with V1.13 \
or V1.14 of Tetrinet or Tetrinet TetriFast."
HOMEPAGE="https://github.com/HaikuArchives/BeNetTris"
COPYRIGHT="2000-2008 Cedric Vincent"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="5d04121340b7c730160d5eab6a97c79b97168464"
SOURCE_URI="https://github.com/HaikuArchives/BeNetTris/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="bd3096b84601a257cd22818ba0396be600d4b99e2f9d02f000d029502af9eddc"
SOURCE_FILENAME="BeNetTris-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="BeNetTris-$srcGitRev"

ARCHITECTURES="all"

USER_SETTINGS_FILES="
	settings/BeNetTrisSettings directory
	"

PROVIDES="
	benettris = $portVersion
	app:BeNetTris = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir/BeNetTris
   	cp objects/BeNetTris $appsDir/BeNetTris
	cp -r Data $appsDir/BeNetTris
	addAppDeskbarSymlink $appsDir/BeNetTris/BeNetTris
}
