Package Details: ocropy-git 737.8b88583-1

Git Clone URL: https://aur.archlinux.org/ocropy-git.git (read-only, click to copy)
Package Base: ocropy-git
Description: Python-based OCR package using recurrent neural networks (formerly ocropus)
Upstream URL: https://github.com/tmbdev/ocropy
Licenses: Apache
Conflicts: ocropy
Provides: ocropy
Submitter: stativ
Maintainer: stativ
Last Packager: stativ
Votes: 12
Popularity: 0.000000
First Submitted: 2015-02-22 20:53
Last Updated: 2015-06-20 14:58

Latest Comments

1 2 3 4 Next › Last »

zaidan commented on 2020-04-08 21:25

@stativ @grunix fixed missing dependencies:

@dreieck @stativ here is a PKGBUILD with major version number:

# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor: Firas Zaidan <firas@zaidan.de>

pkgname=ocropy-git
pkgver=v1.3.3.33.g19b4a7c
pkgrel=1
pkgdesc="Python-based OCR package using recurrent neural networks (formerly ocropus)"
arch=('any')
url="https://github.com/tmbdev/ocropy"
license=('APACHE')
depends=('python-imaging' 'python2-scipy' 'python2-matplotlib' 'python2-pytables'
         'imagemagick' 'opencv' 'python2-beautifulsoup4')
makedepends=('git')
provides=('ocropy')
conflicts=('ocropy')
source=('git+https://github.com/tmbdev/ocropy.git'
        "http://www.tmbdev.net/en-default.pyrnn.gz")
md5sums=('SKIP'
         'cedd140c7d7650e910f0550ad0f04727')

pkgver() {
  cd "$srcdir/ocropy"
  echo $(git describe --tag | sed s/-/./g)
}

prepare() {
  cd "$srcdir/ocropy"
  cp "$srcdir/en-default.pyrnn.gz" models
}

build() {
  cd "$srcdir/ocropy"

  # make sure python2 is always used
  find . -type f -name "*.py" -exec sed -i 's|^#!.*python$|&2|' '{}' ';'
  sed -i 's|^#!.*python$|&2|' ocropus-*
  # FIX LOADING OF MODELS
  sed -i 's|/usr/local|/usr|' ocrolib/common.py
  sed -i 's|/usr/local|/usr|' ocrolib/default.py
  # build
  python2 setup.py build
}

package() {
  cd "$srcdir/ocropy"

  python2 setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et:

grunix commented on 2020-01-24 15:12

Package can't be installed any longer because of missing dependency:

==> Error: Could not find all required packages: python2-pytables (Wanted by: ocropy)

dreieck commented on 2019-01-30 14:30

Is it possible to change the $pkgver()-function such that the first part of the $pkgver will be the major version number, and then something like +$'revision'.git-hash or so?

And if that was possible, append a =${pkgver} to the provides=(ocropy)-entry?

stativ commented on 2015-02-22 20:59

According to the project changes, the package has been merged into ocropy-git.

stativ commented on 2015-02-22 20:58

According to the project changes, the package has been merged into ocropy-git.

stativ commented on 2015-02-22 20:58

According to the project changes, the package has been merged into ocropy-git.

stativ commented on 2015-02-22 20:58

According to the project changes, the package has been merged into ocropy-git.

stativ commented on 2015-02-22 20:36

ocroswig no longer exists, it has been replaced by ocropy.

xelvet commented on 2014-09-11 23:21

Continue building ocropus-data-hg ? [Y/n]
patching file ocroinst
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file ocroinst.rej
==> ERROR: A failure occurred in build().
Aborting...

cman commented on 2012-11-06 18:42

Ocropus has a new installation process now.