wok-next annotate tesseract-ocr/receipt @ rev 20401
fuse2: provide fuse
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 04 10:44:24 2017 +0100 (2017-12-04) |
parents | af8a8f177c6c |
children | dd145c435e4b |
rev | line source |
---|---|
pascal@20024 | 1 # SliTaz package receipt v2. |
pascal@16668 | 2 |
pascal@16668 | 3 PACKAGE="tesseract-ocr" |
pascal@20024 | 4 VERSION="3.05.01" |
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@16668 | 9 WEB_SITE="http://code.google.com/p/tesseract-ocr/" |
pascal@16668 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20024 | 11 WGET_URL="https://github.com/tesseract-ocr/tesseract/archive/$VERSION.tar.gz" |
pascal@16668 | 12 |
pascal@16668 | 13 BUILD_DEPENDS="libtool autoconf automake libpng-dev jpeg-dev tiff-dev \ |
pascal@16668 | 14 giflib-dev zlib-dev icu-dev pango-dev cairo-dev leptonica-dev" |
pascal@20024 | 15 SPLIT="tesseract-ocr tesseract-ocr-dev" |
pascal@16668 | 16 |
pascal@16668 | 17 # Rules to configure and make the package. |
pascal@16668 | 18 compile_rules() |
pascal@16668 | 19 { |
pascal@16668 | 20 ./autogen.sh |
pascal@16668 | 21 ./configure \ |
pascal@16668 | 22 --prefix=/usr \ |
pascal@16668 | 23 $CONFIGURE_ARGS && |
pascal@16668 | 24 make && make install |
pascal@16668 | 25 } |
pascal@16668 | 26 |
pascal@16668 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16668 | 28 genpkg_rules() |
pascal@16668 | 29 { |
pascal@20024 | 30 case $PACKAGE in |
pascal@20024 | 31 tesseract-ocr) |
pascal@20024 | 32 DEPENDS="leptonica libpng jpeg tiff giflib" |
pascal@20024 | 33 mkdir -p $fs/usr/lib |
pascal@20024 | 34 cp -a $install/usr/bin $fs/usr |
pascal@20024 | 35 cp -a $install/usr/share $fs/usr |
pascal@20024 | 36 rm -rf $fs/usr/share/man |
pascal@20024 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20024 | 38 ;; |
pascal@20024 | 39 tesseract-ocr-dev) |
pascal@20024 | 40 CAT="development|The most accurate open source OCR engine available, development files." |
pascal@20024 | 41 DEPENDS="tesseract-ocr" |
pascal@20024 | 42 mkdir -p $fs/usr/lib |
pascal@20024 | 43 cp -a $install/usr/include $fs/usr |
pascal@20024 | 44 cp -a $install/usr/lib/*a $fs/usr/lib |
pascal@20024 | 45 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
pascal@20024 | 46 ;; |
pascal@20024 | 47 esac |
psychomaniak@18352 | 48 } |