summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0aaac114d93122c979a752eb5b6021d1c18d7a0d (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
# Maintainer: Maneren <maneren731@gmail.com>

_langs=(afr amh ara asm aze aze_cyrl bel ben bod bos bre bul cat ceb ces
  chi_sim chi_tra chr cos cym dan dan_frak deu deu_frak div dzo ell enm epo
  equ est eus fao fas fil fin fra frk frm fry gla gle glg grc guj hat heb
  hin hrv hun hye iku ind isl ita ita_old jav jpn kan kat kat_old kaz khm
  kir kmr kor kor_vert lao lat lav lit ltz mal mar mkd mlt mon mri msa
  mya nep nld nor oci ori osd pan pol por pus que ron rus san sin slk
  slk_frak slv snd spa spa_old sqi srp srp_latn sun swa swe syr tam tat
  tel tgk tgl tha tir ton tur uig ukr urd uzb uzb_cyrl vie yid yor)

pkgname=screen-ocr
pkgver=0.2.0
pkgrel=1
pkgdesc="Extract text from screen selection using tesseract."
arch=('x86_64')
license=('MIT')
depends=('tesseract>=4' 'imagemagick>=7' 'spectacle' 'kdialog' 'libnotify')
optdepends=($(for l in "${_langs[@]}"; do echo tesseract-data-"$l"; done))
provides=("$pkgname")
source=("$pkgname.sh")
sha256sums=('2e1de7f96a337012b4a78ead99fba721212c7b7b395ac700c833c00f12004375')

package() {
  mkdir -p "$pkgdir/usr/bin"
  mv "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}