SUMMARY="A tool to quickly start any installed application" 
DESCRIPTION="
QuickLaunch is a small launcher tool that helps you to quickly start any \
installed application. Simply start to enter the name of an application and \
QuickLaunch will find all programs matching these initial letters and show \
them in a list. You choose an app from that list with the CursorUp/Down keys \
and launch it by hitting Return. Escape quits QuickLaunch.
"
HOMEPAGE="http://sourceforge.net/projects/quicklaunch-h/" 
SOURCE_URI="git://git.code.sf.net/p/quicklaunch-h/code#0effdf6464be346374d1b9ea7f63f2af0a2cfbca"
LICENSE="MIT"
COPYRIGHT="2013 Humdinger"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	quicklaunch = $portVersion
	app:quicklaunch = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

USER_SETTINGS_FILES="settings/QuickLaunch_settings"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	quicklaunchDir=$appsDir/QuickLaunch
	mkdir -p $quicklaunchDir

	ARCH=$(echo $buildArchitecture | sed 's/_/-/g')	
	cp -af objects.$ARCH-release/QuickLaunch $quicklaunchDir
	cp -af ReadMe.html $quicklaunchDir
	cp -r images $quicklaunchDir

	chmod +x Add\ to\ Deskbar.sh
	cp -af Add\ to\ Deskbar.sh $quicklaunchDir
	
	addAppDeskbarSymlink $quicklaunchDir/QuickLaunch
}
