Files
haikuports/haiku-apps/djvutranslator/djvutranslator-1.0.1.recipe
Adrien Destugues 535db7dd18 Download from safe sources.
Downloading directly from VCS repos is not allowed on package build
bots, so use archived exports whenever possible.
2016-08-28 22:35:25 +02:00

52 lines
1.5 KiB
Bash

SUMMARY="A translator for DjVu files"
DESCRIPTION="
This is a translator for DjVu files. DjVu is a computer file format designed \
primarily to store scanned documents, especially those containing a \
combination of text, line drawings, indexed color images, and photographs. \
It uses technologies such as image layer separation of text and \
background/images, progressive loading, arithmetic coding, and lossy \
compression for bitonal (monochrome) images. This allows for high-quality, \
readable images to be stored in a minimum of space, so that they can be made \
available on the web."
HOMEPAGE="http://haikuware.ru/software/djvuviewer"
COPYRIGHT="2005-2015 3dEyes**"
LICENSE="GNU GPL v2"
REVISION="3"
commit="1a55eaaf299256e15f58101f8b78cfc1cb66f5cf"
SOURCE_URI="https://github.com/threedeyes/DjVuViewer/archive/$commit.tar.gz"
SOURCE_FILENAME="DjVuViewer-$commit.tar.gz"
SOURCE_DIR="DjVuViewer-$commit"
CHECKSUM_SHA256="a112785414db88068a81184411c4566455a32acf227858ee3af1a8012cb1ba2e"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
djvutranslator$secondaryArchSuffix = $portVersion
addon:DjVuTranslator$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libdjvulibre$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libdjvulibre$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs -f Makefile.Translator
}
INSTALL()
{
mkdir -p $addOnsDir/Translators
cp DjVuTranslator $addOnsDir/Translators
}