wok-current annotate tesseract-ocr/receipt @ rev 24605

Add zmap
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 02 15:59:03 2022 +0000 (2022-03-02)
parents 8dd8bab3f0ca
children e717a4953b0e
rev   line source
pascal@16668 1 # SliTaz package receipt.
pascal@16668 2
pascal@16668 3 PACKAGE="tesseract-ocr"
pascal@16668 4 VERSION="3.02.02"
pascal@16668 5 CATEGORY="office"
pascal@16668 6 SHORT_DESC="The most accurate open source OCR engine available."
pascal@16668 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16668 8 LICENSE="Apache"
pascal@20672 9 WEB_SITE="https://github.com/tesseract-ocr/tesseract"
pascal@16668 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@16668 11 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
pascal@16668 12
pascal@16668 13 DEPENDS="leptonica libpng jpeg tiff giflib"
pascal@16668 14 BUILD_DEPENDS="libtool autoconf automake libpng-dev jpeg-dev tiff-dev \
pascal@16668 15 giflib-dev zlib-dev icu-dev pango-dev cairo-dev leptonica-dev"
pascal@16668 16
pascal@24304 17 # What is the latest version available today?
pascal@24304 18 current_version()
pascal@24304 19 {
pascal@24304 20 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@24304 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 22 }
pascal@24304 23
pascal@16668 24 # Rules to configure and make the package.
pascal@16668 25 compile_rules()
pascal@16668 26 {
pascal@16668 27 ./autogen.sh
pascal@16668 28 ./configure \
pascal@16668 29 --prefix=/usr \
pascal@16668 30 $CONFIGURE_ARGS &&
pascal@16668 31 make && make install
pascal@16668 32 }
pascal@16668 33
pascal@16668 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16668 35 genpkg_rules()
pascal@16668 36 {
pascal@16668 37 mkdir -p $fs/usr/lib
pascal@16668 38 cp -a $install/usr/bin $fs/usr
pascal@16668 39 cp -a $install/usr/share $fs/usr
pascal@16668 40 rm -rf $fs/usr/share/man
pascal@16668 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
psychomaniak@18352 42 }