SUMMARY="A MIDI drum computer"
DESCRIPTION="PecoBeat is a pattern based drum sequencer. That means: You can \
easily create drum sequences and compose a whole drum song!"
HOMEPAGE="https://github.com/HaikuArchives/PecoBeat"
COPYRIGHT="2001-2008 Werner Freytag
	2009, 2014 Haiku"
LICENSE="MIT"
REVISION="2"
srcGitRev="0b404569fe95b53c20f6d2e6cfc84d02b3efcf79"
SOURCE_URI="https://github.com/HaikuArchives/PecoBeat/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="a502413eb61da1980a2dac81fd021290f37bf300a45a911861bccfe97d2b42ee"
SOURCE_FILENAME="PecoBeat-$srcGitRev.tar.gz"
SOURCE_DIR="PecoBeat-$srcGitRev"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	pecobeat = $portVersion
	app:PecoBeat = $portVersion
	"
REQUIRES="
	haiku
	internalmidi
	"

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

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/PecoBeat
	make install TARGET_DIR=$appsDir/PecoBeat

	cp -r documentation $appsDir/PecoBeat
	cp -r examples $appsDir/PecoBeat

	addAppDeskbarSymlink $appsDir/PecoBeat/PecoBeat
}
