SUMMARY="A multiple language translation utility"
DESCRIPTION="Lingua is a multiple language translation utility. \
It translates simple words and phrases to and from English \
into several languages, including Latin, German, Dutch, Italian, French etc."
HOMEPAGE="https://github.com/HaikuArchives/Lingua"
COPYRIGHT="The Aevum Network authors"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="74dd1b98a2c3e7b5f904899cc3e0be73d2031164"
SOURCE_URI="https://github.com/HaikuArchives/Lingua/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="c5e7680eda223c837c8bbb2a75727bc3a15399ddf14d3df045214f819b220a88"
SOURCE_FILENAME="Lingua-$srcGitRev.tar.gz"
SOURCE_DIR="Lingua-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	lingua = $portVersion
	app:Lingua = $portVersion
	"
REQUIRES="
	haiku
	"

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

defineDebugInfoPackage lingua \
	$appsDir/Lingua/Lingua

BUILD()
{
	cd src
	make $jobArgs OBJ_DIR=obj
}

INSTALL()
{
	mkdir -p $appsDir/Lingua
	cp src/obj/Lingua $appsDir/Lingua
	cp -rf {dicts,docs} $appsDir/Lingua
	addAppDeskbarSymlink $appsDir/Lingua/Lingua
}
