Files
haikuports/haiku-apps/systeminfo/systeminfo-2.recipe
2014-01-02 16:40:57 -05:00

54 lines
1.1 KiB
Plaintext

SUMMARY="A system monitor for Haiku"
DESCRIPTION="
It is an little application through which we can see some statistics about our \
system.
It currently only shows:
- CPU 0 usage
- CPU 1 usage (this is omitted if you have 1 cpu of course)
- Memory usage
- Boot disk used space
- Uptime
"
COPYRIGHT="
2002 Brent Miszalski
2012 Disreali"
LICENSE="MIT"
HOMEPAGE="https://github.com/disreali/SystemInfo"
SRC_URI="git+git://github.com/disreali/SystemInfo.git#ae36df9999"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
PROVIDES="
SystemInfo = $portVersion
app:SystemInfo = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:xres
"
BUILD()
{
echo "const uint32 CP_CHANGE_BG = 'CPBG'; const uint32 CP_CHANGE_FG = 'CPFG';" > ./DigitalView.h
g++ CPUPercent.cpp ColourPrefs.cpp ImageView.cpp MemUsage.cpp SIReplicant.cpp main.cpp -o SystemInfo -lbe
xres -o SystemInfo SystemInfo.rsrc
mimeset -f SystemInfo
}
INSTALL()
{
mkdir -p $appsDir
cp SystemInfo $appsDir
addAppDeskbarSymlink $appsDir/SystemInfo
}