wok-6.x view tesseract-ocr/receipt @ rev 25356
updated tig (2.5.1 -> 2.5.6)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 27 06:32:16 2022 +0100 (2022-07-27) |
parents | e717a4953b0e |
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 '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;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 }