SUMMARY="A translator for DOC documents"
DESCRIPTION="This translator converts DOC files to plain text, PostScript or \
PDF using antiword."
HOMEPAGE="http://github.com/TwoFX/DOCTranslator"
SOURCE_URI="https://github.com/HaikuArchives/DOCTranslator/archive/7b8fa2b6d0ce027ce9e9b03cbdc21016190436de.zip"
CHECKSUM_SHA256="ce271927e70e49a2c00eb46df785202bb7de9c7abdaf1f96ef533d827e346588"
REVISION="2"
LICENSE="MIT"
COPYRIGHT="2014 Markus Himmel"

ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	doctranslator$secondaryArchSuffix = $portVersion
	addon:doctranslator$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	antiword >= 0.37
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

SOURCE_DIR="DOCTranslator-7b8fa2b6d0ce027ce9e9b03cbdc21016190436de"

BUILD()
{
	mkdir -p bin
	make TARGET_DIR=bin
}

INSTALL()
{
	mkdir -p $addOnsDir/Translators
	cp bin/DOCTranslator $addOnsDir/Translators
}
