From 993523d07b3b52fbb2bc4494d93ee9d631b0834c Mon Sep 17 00:00:00 2001 From: idealist1508 Date: Fri, 10 May 2024 08:28:42 +0200 Subject: [PATCH] New package: python3-pyocr-0.8.5 --- srcpkgs/python3-pyocr/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-pyocr/template 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 +}