SUMMARY="A tool to manage teams and threads"
DESCRIPTION="Monitor CPU and memory usage of running threads and teams, \
adjust their priorities or kill them."
HOMEPAGE="https://github.com/HaikuArchives/Slayer"
COPYRIGHT="1998 Arto Jalkanen"
LICENSE="GNU GPL v3"
REVISION="1"
srcGitRev="bf24f8fdaa4841ad215b0aa4d99a377e86a5a4ab"
SOURCE_URI="https://github.com/HaikuArchives/Slayer/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="efd3d2db245d585095b92ee5e07028939cd077227812418cf9e2677f80b28ea3"
SOURCE_DIR="Slayer-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	slayer = $portVersion
	app:Slayer = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make -C src OBJ_DIR=objects $jobArgs
}

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