# HG changeset patch # User Pascal Bellard # Date 1400069670 0 # Node ID 6c17a312c269e752543dd02a4a9eb90057102bdc # Parent 8aea70996e662de93e86359f0ef376c7759bfc60 Add tesseract-ocr diff -r 8aea70996e66 -r 6c17a312c269 leptonica-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/leptonica-dev/receipt Wed May 14 12:14:30 2014 +0000 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="leptonica-dev" +VERSION="1.70" +CATEGORY="development" +SHORT_DESC="Software for image processing and image analysis applications, development files." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +WEB_SITE="http://www.leptonica.org/" +WANTED="leptonica" + +DEPENDS="leptonica" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r 8aea70996e66 -r 6c17a312c269 leptonica/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/leptonica/receipt Wed May 14 12:14:30 2014 +0000 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="leptonica" +VERSION="1.70" +CATEGORY="graphics" +SHORT_DESC="Software for image processing and image analysis applications." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +WEB_SITE="http://www.leptonica.org/" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="http://www.leptonica.org/source/$TARBALL" + +DEPENDS="giflib jpeg libpng tiff xorg-libX11 xorg-libXau xorg-libXdmcp libxcb" +BUILD_DEPENDS="giflib-dev jpeg-dev libpng-dev tiff-dev xorg-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./autogen.sh + ./configure \ + --prefix=/usr \ + $CONFIGURE_ARGS && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib +} diff -r 8aea70996e66 -r 6c17a312c269 tesseract-ocr-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tesseract-ocr-dev/receipt Wed May 14 12:14:30 2014 +0000 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="tesseract-ocr-dev" +VERSION="3.02.02" +CATEGORY="development" +SHORT_DESC="The most accurate open source OCR engine available, development files." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="Apache" +WEB_SITE="http://code.google.com/p/tesseract-ocr/" +WANTED="tesseract-ocr" + +DEPENDS="tesseract-ocr" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r 8aea70996e66 -r 6c17a312c269 tesseract-ocr/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tesseract-ocr/receipt Wed May 14 12:14:30 2014 +0000 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKAGE="tesseract-ocr" +VERSION="3.02.02" +CATEGORY="office" +SHORT_DESC="The most accurate open source OCR engine available." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="Apache" +WEB_SITE="http://code.google.com/p/tesseract-ocr/" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL" + +DEPENDS="leptonica libpng jpeg tiff giflib" +BUILD_DEPENDS="libtool autoconf automake libpng-dev jpeg-dev tiff-dev \ +giflib-dev zlib-dev icu-dev pango-dev cairo-dev leptonica-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./autogen.sh + ./configure \ + --prefix=/usr \ + $CONFIGURE_ARGS && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share $fs/usr + rm -rf $fs/usr/share/man + cp -a $install/usr/lib/*.so* $fs/usr/lib +}