blob: 1d546c0f4aa8681e93f9266d8147f76a2d6cbfb6 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=frog-ocr
pkgver=1.3.0
pkgrel=1
pkgdesc="Intuitive text extraction tool (OCR) for GNOME."
arch=('any')
url="https://tenderowl.com/work/frog"
license=('MIT')
depends=('leptonica' 'libadwaita' 'libnotify' 'libportal' 'python-gobject'
'python-pydbus' 'python-pytesseract' 'pyzbar')
makedepends=('meson')
checkdepends=('appstream-glib')
install="$pkgname.install"
source=("Frog-$pkgver.tar.gz::https://github.com/TenderOwl/Frog/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('dce4532fb08d717f9e889ae7d16d4875dbd5224dfa6f11b2808f0d8a5557d865')
prepare() {
cd "Frog-$pkgver"
# Fix path to appdata
sed -i 's|/app/share/|/usr/share/|g' frog/language_manager.py
}
build() {
arch-meson "Frog-$pkgver" build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs || :
}
package() {
meson install -C build --destdir "$pkgdir"
cd "Frog-$pkgver"
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|