mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
SUMMARY="Haiku OCR translator"
|
|
DESCRIPTION="An image to text translator add-on using Tesseract OCR engine."
|
|
HOMEPAGE="https://github.com/threedeyes/TesseractTranslator/"
|
|
COPYRIGHT="2013 3dEyes"
|
|
LICENSE="MIT"
|
|
REVISION="2"
|
|
COMMIT="e1abf334a45d0587820989f98f4980a5d118841d"
|
|
SOURCE_URI="https://github.com/threedeyes/TesseractTranslator/archive/$COMMIT.zip"
|
|
CHECKSUM_SHA256="727871b36d2fc3e9c1009977b0ff292e652f271cf667987c6e21d8b129e51f0e"
|
|
SOURCE_DIR="TesseractTranslator-$COMMIT"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
|
|
PROVIDES="
|
|
tesseracttranslator$secondaryArchSuffix = $portVersion
|
|
addon:TesseractTranslator$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libtesseract$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libtesseract$secondaryArchSuffix
|
|
devel:liblept$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $addOnsDir/Translators
|
|
cp build/TesseractTranslator $addOnsDir/Translators
|
|
}
|