SUMMARY="A fast and full-featured native IRC client"
DESCRIPTION="Vision is an IRC (Internet Relay Chat) client, originally for \
BeOS, now for Haiku. The goal of this project is to provide the Haiku \
community with an elegant, fast, and - most importantly - stable client to \
communicate with other users and make new friends around the world."
HOMEPAGE="https://github.com/HaikuArchives/Vision/"
COPYRIGHT="1999-2021 The Vision Team"
LICENSE="MPL v1.1"
REVISION="2"
srcGitRev="959a5bb9f18975d8246411ff9082cd98325d0b44"
SOURCE_URI="https://github.com/HaikuArchives/Vision/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="0a93578245994b5d18b8d880f9c55be30faf10ad1e148030dade441aa6aba579"
SOURCE_DIR="Vision-$srcGitRev"

ARCHITECTURES="all"

USER_SETTINGS_FILES="
	settings/Vision directory
	"

PROVIDES="
	vision = $portVersion
	app:Vision = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd src
	make $jobArgs
	make bindcatalogs
	cd ..
}

INSTALL()
{
	visionDir=$appsDir/Vision
	mkdir -p $appsDir

	cp -r dist $visionDir
	addAppDeskbarSymlink $visionDir/Vision
}
