# Maintainer: Jerome Leclanche # included in Slint by Didier Spaier _pkgname=tesserwrap pkgname=python-$_pkgname pkgver=0.1.6 pkgrel=2slint slackdesc="Basic python bindings to the Tesseract C++ API" license=("APACHE") url="https://pypi.python.org/pypi/tesserwrap" depends=("python" "tesseract") makedepends=('sed' 'python-setuptools') source=("https://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha256sums=("a26fc24d6de144b6a99d7802973e2a191a69dd6a532f6a20c580670aba9f49e0") build() { cd $SRC/$_pkgname-$pkgver sed -i '/self.set_page_seg_mode(PageSegMode.PSM_SINGLE_BLOCK)/d' ./tesserwrap/__init__.py #remove some bug that is not fixed upstream right now (https://github.com/gregjurman/tesserwrap/issues/20) CFLAGS="-std=c++11" python3 setup.py build CFLAGS="-std=c++11" python3 setup.py install --prefix=/usr --root="$PKG" --optimize=1 --skip-build }