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