wok-current diff tesseract-ocr-lang-por/receipt @ rev 25730

Fix depend for xorg-server (libxshmfence)
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 13:05:56 2024 +0000 (13 days ago)
parents 0f92b8cc8086
children
line diff
     1.1 --- a/tesseract-ocr-lang-por/receipt	Sun May 08 13:06:36 2022 +0000
     1.2 +++ b/tesseract-ocr-lang-por/receipt	Thu Dec 05 13:05:56 2024 +0000
     1.3 @@ -1,27 +1,19 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tesseract-ocr-lang-por"
     1.7 -VERSION="3.02"
     1.8 +VERSION="4.1.0"
     1.9  CATEGORY="office"
    1.10  SHORT_DESC="Portuguese language data for Tesseract OCR."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="Apache"
    1.13  WEB_SITE="https://github.com/tesseract-ocr/tessdata"
    1.14 -TARBALL="tesseract-ocr-$VERSION.${PACKAGE#*lang-}.tar.gz"
    1.15 -WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/tesseract-ocr/$TARBALL"
    1.16  
    1.17  DEPENDS="tesseract-ocr"
    1.18 -
    1.19 -# What is the latest version available today?
    1.20 -current_version()
    1.21 -{
    1.22 -	wget -O - $WEB_SITE/releases 2>/dev/null | \
    1.23 -	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
    1.24 -}
    1.25 +WANTED="tesseract-ocr-data"
    1.26  
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28  genpkg_rules()
    1.29  {
    1.30 -	mkdir -p $fs/usr/share
    1.31 -	cp -a $src/tessdata $fs/usr/share/
    1.32 +	mkdir -p $fs/usr/share/tessdata
    1.33 +	cp -a $src/${PACKAGE##*-}*traineddata	/$fs/usr/share/tessdata
    1.34  }