blob: 4e0f2456554deb004bf1efde83edc9ea41979b35 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: moheladwy <mohamed.h.eladwy@gmail.com>
pkgname=ocr4linux-git
pkgver=1.5.0.r63.a551094
pkgrel=1
pkgdesc="OCR CLI Tool for Extracting Text from Screenshots using bash and python for both x11 and wayland."
arch=('any')
url="https://github.com/moheladwy/OCR4Linux"
license=('MIT')
depends=(
'python'
'bash'
'libnotify'
'tesseract'
'gawk'
'tesseract-data-eng'
'tesseract-data-ara'
'python-numpy'
'python-pillow'
'python-pytesseract'
'python-opencv'
'grimblast-git'
'wl-clipboard'
'cliphist'
'xclip'
'scrot'
'rofi'
)
makedepends=('git')
provides=('OCR4Linux')
source=("$pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname" || exit 1
printf "1.5.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$pkgname" || exit 1
install -Dm755 OCR4Linux.py "${pkgdir}/usr/bin/OCR4Linux.py"
install -Dm755 OCR4Linux.sh "${pkgdir}/usr/bin/OCR4Linux"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|