SUMMARY="Multitrack audio recording and editing suite"
DESCRIPTION="HyperStudio is a multitrack audio recording and editing \
suite with an easy to master graphical user interface. It's based off of \
BeAE, and improves on BeAE in numerous ways."
HOMEPAGE="https://github.com/HaikuArchives/HyperStudio"
COPYRIGHT="2003 Xentronix
	2007 Pier Luigi Fiorini"
LICENSE="MIT"
REVISION="3"
srcGitRev="59b31f0bdc3f0e49feb7d9892faa67222ffb3f95"
SOURCE_URI="https://github.com/HaikuArchives/HyperStudio/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="03c2a7fc68d2a95bce9c873bf6d8a32494370861a23dc8e2689285e7e201a4c9"
SOURCE_DIR="HyperStudio-$srcGitRev"

ARCHITECTURES="!all"

PROVIDES="
	hyperstudio = $portVersion
	app:HyperStudio = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:jam
	cmd:ld
	"

BUILD()
{
	./configure
	jam -q
		# multi-job builds don't work reliably
}

INSTALL()
{
	mkdir -p $appsDir
	cp -a generated/distro-haiku-$(getarch | sed s/_/-/)-release/HyperStudio $appsDir
	cp -a generated/distro-haiku-$(getarch | sed s/_/-/)-release/HyperStudioRecorder $appsDir

	addAppDeskbarSymlink $appsDir/HyperStudio
	addAppDeskbarSymlink $appsDir/HyperStudioRecorder
}
