diff --git a/srcpkgs/python3-pyocr/template b/srcpkgs/python3-pyocr/template new file mode 100644 index 00000000000..c5abe15194c --- /dev/null +++ b/srcpkgs/python3-pyocr/template @@ -0,0 +1,21 @@ +# Template file for 'python3-pyocr' +pkgname=python3-pyocr +version=0.8.5 +revision=1 +build_style=python3-module +hostmakedepends="python3-build python3-installer python3-setuptools_scm python3-wheel" +depends="python3 tesseract-ocr" +short_desc="Python wrapper for Tesseract and Cuneiform" +maintainer="idealist1508 " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/World/OpenPaperwork/pyocr" +distfiles="https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/archive/${version}/pyocr-${version}.tar.bz2" +checksum=ba9c63cfac7bb6e441590053954466b41768e6b87f1b279c2d62460cad8bb174 + +do_build() { + python -m build --wheel --no-isolation +} + +do_install() { + python -m installer --destdir="$DESTDIR" dist/*.whl +}