SUMMARY="An archive manager for Haiku, similar to winzip" 
DESCRIPTION="
Beezer is an archive manager for Haiku. It can extract and browse, create and \
add to archive files. In addition, Beezer can split and rejoin files.
It can extract 7zip, arj, bzip2, gzip, lha, rar, tar, xz and zip files.
It can create 7zip, bzip2, gzip, tar and zip files.
"
HOMEPAGE="https://bitbucket.org/cpr/beezer" 
SRC_URI="hg+https://bitbucket.org/cpr/beezer"
LICENSE="BSD (3-clause)"
COPYRIGHT="
	2009 Ramshankar (aka Teknomancer)
	2011-2012 Chris Roberts
	"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	beezer = $portVersion
	app:beezer = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:cmake >= 2.8
	cmd:gcc
	cmd:make
	"

PATCHES="
	beezer-0.99.hg.patch
	"

BUILD()
{
	cd Source
 	cmake .
 	make $jobArgs
}

INSTALL()
{
	cd Source/build

	mkdir -p $appsDir/Beezer
	cp Beezer $appsDir/Beezer
	cp -a add-ons $appsDir/Beezer
	cp -a ../Beezer/docs $appsDir/Beezer
	addAppDeskbarSymlink $appsDir/Beezer/Beezer
	
	mkdir -p $addOnsDir/Tracker
	cp -a TrackerAddOn/BeezerAddOn $addOnsDir/Tracker
}
