Skip to content

Commit 0ef3354

Browse files
committed
last update for the versioning in the pkgbuild file
1 parent 6a0a0c1 commit 0ef3354

3 files changed

Lines changed: 5 additions & 37 deletions

File tree

.SRCINFO

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ __pycache__/
99
# Arch Linux build
1010
pkg/
1111
src/
12+
ocr4linux-git/
1213
*-any.pkg.*
1314
*.tar.gz
1415

PKGBUILD

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: moheladwy <mohamed.h.eladwy@gmail.com>
22
pkgname=ocr4linux-git
3-
pkgver=1.4.2.r57.e7e63f9
3+
pkgver=1.4.2
44
pkgrel=1
55
pkgdesc="OCR CLI Tool for Extracting Text from Screenshots using bash and python for both x11 and wayland."
66
arch=('any')
@@ -26,23 +26,19 @@ depends=(
2626
)
2727
makedepends=('git')
2828
provides=('OCR4Linux')
29-
source=("$pkgname-$pkgver::git+$url")
29+
source=("$pkgname::git+$url")
3030
sha256sums=('SKIP')
3131

3232
pkgver() {
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

3637
package() {
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
}

0 commit comments

Comments
 (0)