SUMMARY="An automated file management system"
DESCRIPTION="
The Filer is a powerful, flexible automatic file organizer. It is an \
implementation of the Sorting Chute idea conceived on the Glass Elevator \
mailing list for Haiku. Just drag and drop files onto its icon, use the \
Terminal, or send it files via the Open With menu. It can even automatically \
file items in folders you specify. Simple enough for the novice user, powerful \
enough for developers. It automates file management according to a set of \
rules you determine and is pretty much limited only by your imagination. \
Powerful on its own, it can also be extended by shell scripting.
" # Taken from homepage
HOMEPAGE="http://darkwyrm.beemulated.net/apps/filer.htm"
SRC_URI="git://github.com/HaikuArchives/Filer.git#4618b2ae9d7238254860cf3633701dd4f52dad37"
REVISION="1"

LICENSE="MIT"
COPYRIGHT="2008 DarkWyrm"

ARCHITECTURES="x86 x86_gcc2"


PROVIDES="
	filer = $portVersion
	app:filer = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	lib:libsqlite3
	"

BUILD_PREREQUIRES="
	cmd:gcc
	cmd:xres
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	devel:libsqlite3
	"

BUILD()
{
	cd sources/Filer
	gcc -lbe -lsqlite3 -ltranslation -o ../FilerApp *.cpp
	rc -o Filer.rsrc Filer.rdef
	xres -o ../FilerApp Filer.rsrc
	mimeset -f ../FilerApp
}

INSTALL()
{
	mkdir -p $appsDir
	cp sources/FilerApp $appsDir/Filer
	addAppDeskbarSymlink $appsDir/Filer
}
