wok annotate tesseract-ocr/receipt @ rev 25623

created recipes for gtkam and gtkam-lang
author Hans-G?nter Theisgen
date Fri Sep 29 10:56:02 2023 +0100 (13 months ago)
parents ffe30fb08ada
children
rev   line source
pascal@16668 1 # SliTaz package receipt.
pascal@16668 2
pascal@16668 3 PACKAGE="tesseract-ocr"
Hans-G?nter@25351 4 VERSION="5.2.0"
pascal@16668 5 CATEGORY="office"
pascal@16668 6 SHORT_DESC="The most accurate open source OCR engine available."
pascal@16668 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16668 8 LICENSE="Apache"
pascal@20672 9 WEB_SITE="https://github.com/tesseract-ocr/tesseract"
Hans-G?nter@25351 10
pascal@16668 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25351 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
pascal@16668 13
Hans-G?nter@25351 14 DEPENDS="gcc83-lib-base giflib jpeg leptonica libpng tiff"
Hans-G?nter@25351 15 BUILD_DEPENDS="autoconf automake cairo-dev gcc83 giflib-dev icu-dev jpeg-dev
Hans-G?nter@25351 16 leptonica-dev libpng-dev libtool pango-dev tiff-dev zlib-dev"
pascal@16668 17
pascal@24304 18 # What is the latest version available today?
pascal@24304 19 current_version()
pascal@24304 20 {
pascal@24304 21 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@25601 22 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;q'
pascal@24304 23 }
pascal@24304 24
pascal@16668 25 # Rules to configure and make the package.
pascal@16668 26 compile_rules()
pascal@16668 27 {
Hans-G?nter@25351 28 # 5.2.0 avoid undefined symbol: GOMP_parallel at runtime
Hans-G?nter@25351 29 # by disable-openmp
Hans-G?nter@25351 30
Hans-G?nter@25351 31 ./autogen.sh &&
Hans-G?nter@25351 32 ./configure \
Hans-G?nter@25351 33 CC=gcc-83 \
Hans-G?nter@25351 34 CXX=g++-83 \
Hans-G?nter@25351 35 --prefix=/usr \
Hans-G?nter@25351 36 --disable-openmp \
pascal@16668 37 $CONFIGURE_ARGS &&
Hans-G?nter@25351 38 make &&
Hans-G?nter@25351 39 make install
pascal@16668 40 }
pascal@16668 41
pascal@16668 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16668 43 genpkg_rules()
pascal@16668 44 {
Hans-G?nter@25351 45 cook_copy_folders bin
Hans-G?nter@25351 46 cook_copy_folders tessdata
Hans-G?nter@25351 47 cook_copy_files *.so*
psychomaniak@18352 48 }