SUMMARY="Cool NT-like system and process monitor"
DESCRIPTION="TaskManager displays all relevant system information in three tabs in its \
main window. These are:\

 * The Usage tab: Displays general system information like memory and CPU usage.
 * The Process tab: Displays all runnig processes (teams) in your system, their\
  memory and CPU usage, team id etc. You can quit teams, kill them and change \
  their priority.
 * The Performance tab: This is a configurable graphical display for various \
 system information including your motherboard temperature (X86 version only, \
 only available if you have a LM78 motherboard sensor installed).
	"
HOMEPAGE="https://github.com/HaikuArchives/TaskManager"
SOURCE_URI="git+git://github.com/HaikuArchives/TaskManager#7b3f1afe03230a9548cc0670c9bf95d146b49a48"
COPYRIGHT="2000 Thomas Krammer"
LICENSE="Apache v2"
REVISION="3"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	taskmanager = $portVersion
	app:TaskManager = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd source
	make $jobArgs OBJ_DIR=objects

	cd add_ons/default
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir/TaskManager/add_ons
	cp source/objects/TaskManager $appsDir/TaskManager/TaskManager
	cp source/add_ons/default/objects/taskmanager_default.so $appsDir/TaskManager/add_ons
	cp -r doc $appsDir/TaskManager
	addAppDeskbarSymlink $appsDir/TaskManager/TaskManager
}
