# Maintainer: Bruce Zhang pkgname=fastocr-git pkgver=0.3.7.r19.188a909 pkgrel=2 pkgdesc='FastOCR is a desktop application for OCR API.' arch=('any') url='https://github.com/BruceZhang1993/FastOCR' license=('LGPL-3.0-or-later') depends=('python-pyqt6' 'python-qasync' 'python-aiohttp' 'python-dbus-next' 'python-click' 'qt6-quickcontrols2') makedepends=('git' 'python-setuptools') # 'bzr', 'git', 'mercurial' or 'subversion' provides=('fastocr') source=('fastocr::git+https://github.com/BruceZhang1993/FastOCR') sha256sums=('SKIP') pkgver() { cd "$srcdir/fastocr" printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } build() { cd "$srcdir/fastocr" python setup.py build } package() { cd "$srcdir/fastocr" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build install -Dm644 fastocr/data/FastOCR.desktop "$pkgdir/usr/share/applications/FastOCR.desktop" }