SUMMARY="XMPP client for Haiku"
DESCRIPTION="A simple but powerful client for chatting on XMPP networks.
Features user-to-user chat, group chat, transports, etc, in a clean and easy \
to use user interface."
HOMEPAGE="https://github.com/HaikuArchives/Renga"
COPYRIGHT="19??-2009 John Blanco, Frank Paul Silye, Andrea Anzani, Daniel Fischer, zuMi
	2008-2022 HaikuArchives Team, Adrien Destugues, Pascal Abresch"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="Renga-$portVersion.tar.gz"
CHECKSUM_SHA256="ffe4c8087d1a86ce5d787f44fc3299b5e4165177c5bfca7d0672f0392baf3f39"
SOURCE_DIR="Renga-$portVersion"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	renga$secondaryArchSuffix = $portVersion
	app:Renga
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libexpat$secondaryArchSuffix
	lib:libgloox$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libexpat$secondaryArchSuffix
	devel:libgloox$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:cmake
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	mkdir -p build && cd build
	cmake .. -DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=$prefix
	make $jobArgs
}

INSTALL()
{
	make -C build install
	addAppDeskbarSymlink $appsDir/Renga
}
