Files
haikuports/haiku-apps/systeminfo/systeminfo-2.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

55 lines
1.3 KiB
Bash

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"
HOMEPAGE="https://github.com/disreali/SystemInfo"
COPYRIGHT="2002 Brent Miszalski
2019 Disreali
2019 Chirayu Desai"
LICENSE="MIT"
REVISION="4"
srcGitRev="b24d7af15bce6fb14d6d821c635a5b32e0a2bb92"
SOURCE_URI="https://github.com/disreali/SystemInfo/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="390f772bce6625f607090024a855043bda37009352201b9e1c2b02d32f35e430"
SOURCE_FILENAME="SystemInfo-$srcGitRev.tar.gz"
SOURCE_DIR="SystemInfo-$srcGitRev"
ARCHITECTURES="all"
PROVIDES="
systeminfo = $portVersion
app:SystemInfo = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
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
}