SUMMARY="A P2P file sharing client for the Direct Connect Protocol"
DESCRIPTION="BDirectConnect (aka BeDC) is a BeOS file sharing client \
compatible with the Direct Connect protocol.
Currently only chatting works, not filesharing/downloading."
HOMEPAGE="https://github.com/HaikuArchives/BeDC"
COPYRIGHT="2002 The BeDC team"
LICENSE="BSD (3-clause)"
REVISION="2"
srcGitRev="cf2f67fba574e934a06026c66b4f4298470716c8"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="9a4a632fa21cfd7d1b9adfca3179356d81e26308d67a0e6dcbfdd4546bb2d18c"
SOURCE_FILENAME="BeDC-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="BeDC-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	bdirectconnect = $portVersion
	app:BDirectConnect = $portVersion
	"
REQUIRES="
	haiku
	"

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

defineDebugInfoPackage bdirectconnect \
	$appsDir/BDirectConnect

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	install -d $appsDir
	install -t $appsDir objects/BDirectConnect

	addAppDeskbarSymlink $appsDir/BDirectConnect
}
