SUMMARY="A file management program similar to Windows Explorer"
DESCRIPTION="The goal for Seeker is to provide an alternate means of file \
management, providing easy interaction with Tracker and Terminal. It's \
currently quite useful as it is, and more features are planned for the future.
"
HOMEPAGE="https://github.com/HaikuArchives/Seeker"
LICENSE="MIT"
COPYRIGHT="DarkWyrm"
SOURCE_URI="git+https://github.com/HaikuArchives/Seeker.git#f5241f9"
REVISION="2"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	seeker = $portVersion
	app:Seeker = $portVersion
	"

REQUIRES="
	haiku
	lib:libsanta
	"

BUILD_REQUIRES="
	devel:libsanta
	"
	
BUILD_PREREQUIRES="
	haiku_devel
	makefile_engine
	cmd:gcc
    cmd:ld
	cmd:make
	"

BUILD()
{
	cd src
	local packageName="${portName}-$portFullVersion"
	local packageLinksDir=$(dirname $portPackageLinksDir)
	local libsantaDir="$packageLinksDir/${packageName}/devel~libsanta/$relativeIncludeDir/santa"
	make OBJ_DIR=objects LOCAL_INCLUDE_PATHS=$libsantaDir $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp -a src/objects/Seeker $appsDir
	
	addAppDeskbarSymlink $appsDir/Seeker
}
