wok-current view tesseract-ocr/receipt @ rev 25516

memtest64: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 19 11:36:17 2023 +0000 (22 months ago)
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 }