SUMMARY="A translator for PDF files"
DESCRIPTION="
This is a translator for PDF files based on MuPDF library.

Portable Document Format (PDF) is a file format used to present documents in \
a manner independent of application software, hardware, and operating \
systems. Each PDF file encapsulates a complete description of a fixed-layout \
flat document, including the text, fonts, graphics, and other information \
needed to display it. In 1991, Adobe Systems co-founder John Warnock outlined \
a system called \"Camelot\" that evolved into PDF."
LICENSE="GNU GPL v3"
COPYRIGHT="2012-2015 3dEyes**"
HOMEPAGE="https://github.com/threedeyes/PDFTranslator"
SOURCE_URI="git+https://github.com/threedeyes/PDFTranslator#b888404"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	pdftranslator$secondaryArchSuffix = $portVersion
	addon:PDFTranslator$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	lib:libmupdf$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libmupdf$secondaryArchSuffix
	"

BUILD_PREREQUIRES="
	cmd:g++$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $addOnsDir/Translators
	cp build/PDFTranslator $addOnsDir/Translators
}
