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"
COPYRIGHT="2003 Mikael Eiman"
LICENSE="BSD (3-clause)"
REVISION="3"
srcGitRev="4bbd3e9709d7288ffefbc215ab41a152a24a2276"
SOURCE_URI="https://github.com/HaikuArchives/BeIndexed/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="b9bb08ec87e96169708309e26ef6ee59e1c30c2f46a06c6a7427d3e8d4d65c00"
SOURCE_DIR="BeIndexed-$srcGitRev"
PATCHES="beindexed-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	beindexed = $portVersion
	app:Finder = $portVersion
	cmd:Indexer = $portVersion
	"
REQUIRES="
	haiku
	lib:liblayout
	lib:libsqlite3
	"

BUILD_REQUIRES="
	haiku_devel
	devel:liblayout
	devel:libsqlite3
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	cmd:xres
	"

BUILD()
{
	mkdir bin || true
	make
}

INSTALL()
{
	mkdir -p $binDir
	mkdir -p $appsDir

	cp bin/Indexer $binDir
	cp bin/Finder $appsDir

	addAppDeskbarSymlink $appsDir/Finder
}
