SUMMARY="A replicant showing the network status"
DESCRIPTION="NetPulse is status replicant that gives an indication of data \
being sent or received over the network."
HOMEPAGE="https://github.com/HaikuArchives/NetPulse"
SOURCE_URI="git://github.com/HaikuArchives/NetPulse#102c1cc"
COPYRIGHT="2001 Carlos Hasan"
LICENSE="MIT"
REVISION="5"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	netpulse = $portVersion
	app:NetPulse = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	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"
}
