SUMMARY="An e-mail client" 
DESCRIPTION="
Beam (BEware, Another Mailer) is an open source e-mail client for BeOS (R5 and \
onwards) that aims to be fast, stable and feature-complete.
"
HOMEPAGE="http://github.com/olta/beam" 

SOURCE_URI="https://github.com/olta/beam/archive/v1.2.tar.gz"
CHECKSUM_SHA256="c1cec0355e6771f398e685eceb65acbbfa948f24f2e60df877ed6007db1a4b6b"

REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2000-2014 Oliver Tappe"
ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
	beam = $portVersion
	app:Beam = $portVersion
	"
REQUIRES="
	liblayout >= 1.4.0
	libpcre >= 8.00
	lib:libssl
	"
BUILD_REQUIRES="
	devel:liblayout >= 1.4.0
	devel:libpcre
	devel:libiconv
	devel:libssl
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:jam
	cmd:gcc
	cmd:bison
	cmd:flex
	"

BUILD()
{
	jam -q $jobArgs
}

INSTALL()
{
	mkdir -p ${appsDir}/Beam
	cp -a generated/distro-haiku/* ${appsDir}/Beam
	cp -a Changes.txt Readme.md ${appsDir}/Beam
	mkdir -p ${appsDir}/Beam/Icons
	cp -a resources/iconset* ${appsDir}/Beam/Icons
	cd ${appsDir}/Beam/tools
	ln -s ../lib .
	ln -s ../add-ons .

	addAppDeskbarSymlink ${appsDir}/Beam/Beam
}
