SUMMARY="Search through your files with ease!"
DESCRIPTION="
BeIndexed searches all your files and builds a database with their content. \
You can then search for files by content, like on Google etc. Index files with \
Indexer, Find files with Finder.
"
HOMEPAGE="https://github.com/HaikuArchives/BeIndexed" #Or web.archive.org and eiman.tv/BeIndexed
SRC_URI="git://github.com/HaikuArchives/BeIndexed.git#4bbd3e9709d7288ffefbc215ab41a152a24a2276"

REVISION="1"

LICENSE="BSD (3-clause)"
COPYRIGHT="2003 Mikael Eiman"

ARCHITECTURES="x86_gcc2 x86"


PROVIDES="
	beindexed = $portVersion
	app:Finder = $portVersion
	cmd:Indexer = $portVersion
	"

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

BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:xres
	cmd:make
	cmd:mkdepend
	"

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

USER_SETTINGS_FILES="
	data/BeIndexed directory
	"

BUILD()
{
	mkdir bin || true
	make
}

INSTALL()
{
	mkdir -p $binDir
	mkdir -p $appsDir
	
	cp bin/Indexer $binDir
	cp bin/Finder $appsDir
	
	addAppDeskbarSymlink $appsDir/Finder
}
