SUMMARY="Haiku Audio Ripper Encoder"
DESCRIPTION="
Hare - Haiku Audio Ripper Encoder, formerly known as Flip-Side A.E."
HOMEPAGE="https://github.com/HaikuArchives/Hare"
COPYRIGHT="2000 FlipSide Software
	2001-2003 BeUnited.org
	2009-2013 Hare Maintainers"
LICENSE="MIT"
REVISION="5"
srcGitRev="851ce664877a002752dbcf40c89ed582656d8b73"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="af972a595f798905aa6bfd21e6e1d1d2d700944f2c3e2e6a92259345125ac72b"
SOURCE_DIR="Hare-$srcGitRev"

ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	hare = $portVersion
	app:Hare = $portVersion
	"
REQUIRES="
	haiku
	cmd:flac
	cmd:gogo_enc
	cmd:lame
	cmd:oggenc
	lib:libtag
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libtag
	"
BUILD_PREREQUIRES="
	cmd:cmake
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cmake .
	make
}

INSTALL()
{
	mkdir -p $appsDir/Hare
	cp -r build/* $appsDir/Hare
	addAppDeskbarSymlink $appsDir/Hare/Hare Hare
}
