SUMMARY="Execute or repeat commands after a countdown"
DESCRIPTION="CommandTimer counts down to zero then executes a user provided \
command or script or launches an application etc.

You can point to a location that the command will be executed in, \
and choose to keep repeating that countdown and also set an alarm that'll \
play back the system beep (set in Haiku's Sounds preferences)."
HOMEPAGE="https://github.com/HaikuArchives/CommandTimer"
COPYRIGHT="1999 Jason Scaroni
	2020 Humdinger"
LICENSE="Public Domain"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="2ad1f6683e6d12d9305864c8f06d0981289a0f28bd676e6f807ee52e3d0711af"
SOURCE_DIR="CommandTimer-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	commandtimer = $portVersion
	app:CommandTimer = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:ld
	cmd:make
	"

BUILD()
{
	cd src
	mkdir -p bin
	make $jobArgs TARGET_DIR=bin
}

INSTALL()
{
	install -d $appsDir
	install -t $appsDir src/bin/CommandTimer
	addAppDeskbarSymlink $appsDir/CommandTimer
}
