SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gocr"

# SliTaz package receipt.

PACKAGE="gocr"
VERSION="0.52"
CATEGORY="office"
TAGS="OCR"
SHORT_DESC="Optical Character Recognition program."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL"
WEB_SITE="https://jocr.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://www-e.uni-magdeburg.de/jschulen/ocr/$TARBALL"

DEPENDS="libpng"
HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - https://www-e.ovgu.de/jschulen/ocr/download.html 2>/dev/null | \
    sed '/\/ocr\/gocr-/!d;s|.*gocr-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    patch --input=$stuff/gocr-0.52-pnm.patch src/pnm.c

    ./configure        \
        --prefix=/usr    \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/bin
    cp -a $install/bin/gocr $fs/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)