blob: 162c5792b269deba5a041690d3c87e3b6826365c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Bruce Zhang <zttt183525594 [at] gmail [dot] com>
pkgname=fastocr-git
pkgver=0.3.7.r26.feffa56
pkgrel=1
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-declarative')
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"
}
|