SUMMARY="A tool to retro-fit looks and layout of existing folders"
DESCRIPTION="
If you want your folders to have a certain icon, set of columns, backgrounds, \
pergaps even some default content, FolderShaper lets you chnage all that in a \
snap. Create a perfect folder, add it as a foldershaper template, then drop \
your folders on FolderShaper and select the template from the pop-up menu."
HOMEPAGE="https://github.com/HaikuArchives/FolderShaper"
COPYRIGHT="2005 Jonas Sundström"
LICENSE="Public Domain"
REVISION="4"
srcGitRev="6bf73af2ddb5a96ac46950e66fd24f1499c092dc"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="d41494b4c11c0c0827a3a5121556ae92e6138095f8ee44a55a612ca041596378"
SOURCE_DIR="FolderShaper-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	foldershaper = $portVersion
	addon:foldershaper = $portVersion
	app:FolderShaper = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd Source
	make
}

INSTALL()
{
	cd  Source
	make install INSTALL_DIR=$appsDir/FolderShaper
	mkdir -p $addOnsDir/Tracker
	ln -s $appsDir/FolderShaper/FolderShaper $addOnsDir/Tracker
	addAppDeskbarSymlink $appsDir/FolderShaper/FolderShaper "FolderShaper"
	cp ../README $appsDir/FolderShaper/README
}
