wok-next diff tesseract-ocr/receipt @ rev 20424
linux-dev: move creation to compile_rules(), keep genpkg_rules() for copying/splitting only
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 12 17:02:57 2018 +0200 (2018-01-12) |
parents | af8a8f177c6c |
children | dd145c435e4b |
line diff
1.1 --- a/tesseract-ocr/receipt Sat Sep 12 19:55:05 2015 +0200 1.2 +++ b/tesseract-ocr/receipt Fri Jan 12 17:02:57 2018 +0200 1.3 @@ -1,18 +1,18 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="tesseract-ocr" 1.8 -VERSION="3.02.02" 1.9 +VERSION="3.05.01" 1.10 CATEGORY="office" 1.11 SHORT_DESC="The most accurate open source OCR engine available." 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="Apache" 1.14 WEB_SITE="http://code.google.com/p/tesseract-ocr/" 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL" 1.17 +WGET_URL="https://github.com/tesseract-ocr/tesseract/archive/$VERSION.tar.gz" 1.18 1.19 -DEPENDS="leptonica libpng jpeg tiff giflib" 1.20 BUILD_DEPENDS="libtool autoconf automake libpng-dev jpeg-dev tiff-dev \ 1.21 giflib-dev zlib-dev icu-dev pango-dev cairo-dev leptonica-dev" 1.22 +SPLIT="tesseract-ocr tesseract-ocr-dev" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 @@ -27,9 +27,22 @@ 1.27 # Rules to gen a SliTaz package suitable for Tazpkg. 1.28 genpkg_rules() 1.29 { 1.30 - mkdir -p $fs/usr/lib 1.31 - cp -a $install/usr/bin $fs/usr 1.32 - cp -a $install/usr/share $fs/usr 1.33 - rm -rf $fs/usr/share/man 1.34 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.35 + case $PACKAGE in 1.36 + tesseract-ocr) 1.37 + DEPENDS="leptonica libpng jpeg tiff giflib" 1.38 + mkdir -p $fs/usr/lib 1.39 + cp -a $install/usr/bin $fs/usr 1.40 + cp -a $install/usr/share $fs/usr 1.41 + rm -rf $fs/usr/share/man 1.42 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.43 + ;; 1.44 + tesseract-ocr-dev) 1.45 + CAT="development|The most accurate open source OCR engine available, development files." 1.46 + DEPENDS="tesseract-ocr" 1.47 + mkdir -p $fs/usr/lib 1.48 + cp -a $install/usr/include $fs/usr 1.49 + cp -a $install/usr/lib/*a $fs/usr/lib 1.50 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.51 + ;; 1.52 + esac 1.53 } 1.54 \ No newline at end of file