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