diff options
author | Patrick Northon | 2021-06-22 00:29:32 -0400 |
---|---|---|
committer | Patrick Northon | 2021-06-22 00:29:32 -0400 |
commit | 27cc54f9c80ac66c1ddf6c09fc724bbf04299c57 (patch) | |
tree | 20affe088588f991080886919dc7ade395d76449 | |
parent | bacceafc3210d9efabb89e48d9d039e973458422 (diff) | |
download | aur-27cc54f9c80ac66c1ddf6c09fc724bbf04299c57.tar.gz |
Fix for python2-imaging.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -12,12 +12,12 @@ pkgbase = ocropy-git depends = python2-pytables depends = imagemagick depends = opencv - depends = python2-beautifulsoup4 + depends = python2-lxml provides = ocropy + conflicts = ocropy source = git+https://github.com/ocropus/ocropy.git source = https://github.com/zuphilip/ocropy-models/raw/master/en-default.pyrnn.gz sha256sums = SKIP sha256sums = b749ec701a53915183963c3814a288de7da5a38261bd9008e0ae0674c71cd1f7 pkgname = ocropy-git - @@ -10,9 +10,10 @@ arch=('any') url="https://github.com/ocropus/${_pkgname}" license=('APACHE') depends=('python2-imaging' 'python2-scipy' 'python2-matplotlib' 'python2-pytables' - 'imagemagick' 'opencv' 'python2-beautifulsoup4') + 'imagemagick' 'opencv' 'python2-lxml') makedepends=('git') provides=("${_pkgname}") +conflicts=("${_pkgname}") source=("git+https://github.com/ocropus/${_pkgname}.git" "https://github.com/zuphilip/ocropy-models/raw/master/en-default.pyrnn.gz") sha256sums=('SKIP' @@ -27,8 +28,11 @@ prepare() { cd "$srcdir/${_pkgname}" cp "$srcdir/en-default.pyrnn.gz" models - sed -i 's|tostring|tobytes|' ocrolib/common.py - sed -i 's|PIL\.Image\.fromstring|PIL\.Image\.frombytes|' ocrolib/common.py + #sed -i 's|numpy.fromstring|numpy.frombytes|' ocrolib/common.py + #sed -i 's|tostring|tobytes|' ocrolib/common.py + #sed -i 's|im.tobytes()|im.tostring()|' 'ocrolib/common.py' + #sed -i 's|PIL\.Image\.fromstring|PIL\.Image\.frombytes|' 'ocrolib/common.py' + sed -i 's|tobytes|tostring|' ocrolib/common.py } build() { |