wok annotate tesseract-ocr-data/receipt @ rev 25580
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 07:58:44 2023 +0000 (13 months ago) |
parents | a77e2ca5a843 |
children | 0262035dc1e7 |
rev | line source |
---|---|
Hans-G?nter@25352 | 1 # SliTaz package receipt. |
Hans-G?nter@25352 | 2 |
Hans-G?nter@25352 | 3 PACKAGE="tesseract-ocr-data" |
Hans-G?nter@25352 | 4 VERSION="4.1.0" |
Hans-G?nter@25352 | 5 CATEGORY="meta" |
Hans-G?nter@25352 | 6 SHORT_DESC="The most accurate open source OCR engine available - language data files." |
Hans-G?nter@25352 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@25352 | 8 LICENSE="Apache" |
Hans-G?nter@25352 | 9 WEB_SITE="https://github.com/tesseract-ocr/tessdata" |
Hans-G?nter@25352 | 10 |
Hans-G?nter@25352 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25352 | 12 WGET_URL="https://github.com/tesseract-ocr/tessdata/archive/refs/tags/$VERSION.tar.gz" |
pascal@25580 | 13 |
pascal@25580 | 14 # What is the latest version available today? |
pascal@25580 | 15 current_version() |
pascal@25580 | 16 { |
pascal@25580 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25580 | 18 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@25580 | 19 } |