wok-next annotate tesseract-ocr/receipt @ rev 20536
gnome-mplayer: up (1.0.8)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 21:22:54 2018 +0300 (2018-03-30) |
parents | 4e48c5763165 |
children | 9e5dca6702bf |
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 |
al@20454 | 13 BUILD_DEPENDS="libtool autoconf automake libpng16-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) |
al@20454 | 32 DEPENDS="leptonica libpng16 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 } |