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 (as long as it has an app-signature). 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. ESC quits QuickLaunch.

It's recommended to set a key combo to start QuickLaunch with Haiku's \
Shortcuts preferences.
"
HOMEPAGE="http://sourceforge.net/projects/quicklaunch-h/" 
SOURCE_URI="git://git.code.sf.net/p/quicklaunch-h/code#b34dd3f1087111b3fc0645182b8719a29da8de22"
LICENSE="MIT"
COPYRIGHT="2014 Humdinger"
REVISION="1"
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 OBJ_DIR=objects
}

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

	cp -af objects/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
}
