SUMMARY="Full featured e-mail client"
DESCRIPTION="Scooby is an open source full featured BeOS native e-mail client."
HOMEPAGE="https://sourceforge.net/p/scooby/"
COPYRIGHT="Atsushi Takamatsu"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="e53f65326329dd5a85fbdee640f4edefc2d043d3"
SOURCE_URI="https://github.com/HaikuArchives/Scooby/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="29630d6ef1ff51cb463762d9bed23c8ebadac045e023c28b1ce1e8d72469384c"
SOURCE_FILENAME="$portVersionedName.tar.gz"
SOURCE_DIR="Scooby-$srcGitRev"

ARCHITECTURES="!all ?x86_gcc2"

PROVIDES="
	scooby = $portVersion
	app:Scooby = $portVersion
	"
REQUIRES="
	haiku
	lib:libsanta
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libsanta
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	make install TARGET_DIR=$appsDir

	addAppDeskbarSymlink $appsDir/Scooby
}
