File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ __pycache__/
99# Arch Linux build
1010pkg /
1111src /
12+ ocr4linux-git /
1213* -any.pkg. *
1314* .tar.gz
1415
Original file line number Diff line number Diff line change 11# Maintainer: moheladwy <mohamed.h.eladwy@gmail.com>
22pkgname=ocr4linux-git
3- pkgver=1.4.2.r57.e7e63f9
3+ pkgver=1.4.2
44pkgrel=1
55pkgdesc=" OCR CLI Tool for Extracting Text from Screenshots using bash and python for both x11 and wayland."
66arch=(' any' )
@@ -26,23 +26,19 @@ depends=(
2626)
2727makedepends=(' git' )
2828provides=(' OCR4Linux' )
29- source=(" $pkgname - $pkgver ::git+$url " )
29+ source=(" $pkgname ::git+$url " )
3030sha256sums=(' SKIP' )
3131
3232pkgver () {
33+ cd " $srcdir /$pkgname " || exit 1
3334 printf " 1.4.2.r%s.%s" " $( git rev-list --count HEAD) " " $( git rev-parse --short HEAD) "
3435}
3536
3637package () {
37- cd " ${ srcdir} / $( ls " ${srcdir} " | grep -E " ${ pkgname} -1.4.2.r[0-9]+.[a-z0-9]{7} " | head -1 ) " || exit 1
38+ cd " $srcdir / $ pkgname" || exit 1
3839
39- # Install shell and Python scripts
4040 install -Dm755 OCR4Linux.py " ${pkgdir} /usr/bin/OCR4Linux.py"
4141 install -Dm755 OCR4Linux.sh " ${pkgdir} /usr/bin/OCR4Linux"
42-
43- # Install documentation
4442 install -Dm644 README.md " ${pkgdir} /usr/share/doc/${pkgname} /README.md"
45-
46- # Install License
4743 install -Dm644 LICENSE -t " ${pkgdir} /usr/share/licenses/${pkgname} /LICENSE"
4844}
You can’t perform that action at this time.
0 commit comments