SUMMARY="A replicant showing the network status"
DESCRIPTION="NetPulse is a status replicant that gives an indication of data \
being sent or received over the network."
HOMEPAGE="https://github.com/HaikuArchives/NetPulse"
COPYRIGHT="2001 Carlos Hasan"
LICENSE="MIT"
REVISION="8"
srcGitRev="3170b71ab9819bb38b3a5ea33f801600747a520f"
SOURCE_URI="https://github.com/HaikuArchives/NetPulse/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="1f1daf872c3237b5f7892eb124599fa9b492e76bd2b825ab4afb7371ee5d9a0d"
SOURCE_DIR="NetPulse-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	netpulse = $portVersion
	app:NetPulse = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp objects/NetPulse $appsDir/NetPulse

	# Add a symlink to the Desktop applets directory in Deskbar
	desktopAppletsDir="$dataDir/deskbar/menu/Desktop applets"
	mkdir -p "$desktopAppletsDir"
	ln -s $appsDir/NetPulse "$desktopAppletsDir"
}
