wok-next view tesseract-ocr/receipt @ rev 20555
Fix "DSO missing..." error: loqui, xfprint, notification-daemon-gtk2, xfmedia, evince, celestia(?)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 17:43:57 2018 +0300 (2018-04-06) |
parents | 4e48c5763165 |
children | 9e5dca6702bf |
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 libpng16-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 libpng16 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 }