SUMMARY="An archive manager similar to winzip" 
DESCRIPTION="Beezer is an archive manager that can extract and browse, create \
and add to archive files and also split and rejoin them. It extracts 7zip, \
bzip2, gzip, lha, rar, tar, xz and zip files and creates 7zip, bzip2, \
gzip, tar and zip archives."
HOMEPAGE="https://bitbucket.org/cpr/beezer" 
SOURCE_URI="hg+https://bitbucket.org/cpr/beezer"
LICENSE="BSD (3-clause)"
COPYRIGHT="
	2009 Ramshankar (aka Teknomancer)
	2011-2015 Chris Roberts
	"
REVISION="4"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	beezer = $portVersion
	app:Beezer = $portVersion
	"
REQUIRES="
	haiku
	cmd:7za
	cmd:bzip2
	cmd:lha
	cmd:tar
	cmd:unrar
	cmd:unzip
	cmd:xz
	cmd:zip
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:cmake
	cmd:gcc
	cmd:make
	"

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
}
