SUMMARY="A simple rhythm station for creating loops"
DESCRIPTION="XRS is a useful rhythm station for creating your own \
looping music and could be used to create repeating background music \
for videos or even a ringtone for your phone."
HOMEPAGE="https://github.com/HaikuArchives/XRS"
COPYRIGHT="2001-2003 Giuseppe Gargaro & Andrea Anzani
	1995, 1996 Jarno Seppanen
	1999 Fabien Fulhaber
	2000 Steinberg Soft- und Hard GmbH
	1995-1998 Kai Lassfolk
	1999 Be Incorporated"
LICENSE="MIT"
REVISION="1"
srcGitRev="a4c693726c791628c077ac4af7721a7dc956d369"
SOURCE_URI="https://github.com/HaikuArchives/xrs/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="6b1ad48909977bb2cc7200bfaedd1a7f1d6caebe476d372cc3260b0a8144bde7"
SOURCE_FILENAME="XRS-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="XRS-$srcGitRev"

ARCHITECTURES="?all"

PROVIDES="
	xrs = $portVersion
	app:XRS = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd XrsPalm/src
	make OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir/XRS
	cd XrsPalm
	cp XRS $appsDir/XRS
	cp -r Skin $appsDir/XRS
	addAppDeskbarSymlink $appsDir/XRS/XRS
}
