summaryrefslogtreecommitdiff
path: root/community/tesseract/PKGBUILD
blob: 9427ae468fc88d239ad3c30e7735234f824fd1d3 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# $Id: PKGBUILD 28735 2010-10-05 05:30:06Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>

pkgname=tesseract
pkgver=3.00
pkgrel=2
pkgdesc="An OCR programm"
arch=(x86_64 i686)
url="http://code.google.com/p/tesseract-ocr"
license=("APACHE")
depends=(libpng libtiff libjpeg zlib gcc-libs)
source=(http://tesseract-ocr.googlecode.com/files/$pkgname-$pkgver.tar.gz
        http://tesseract-ocr.googlecode.com/files/chi_tra.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/chi_sim.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/ind.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/swe.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/ron.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/slv.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/srp.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/tgl.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/tur.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/hun.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/fin.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/ita.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/nld.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/jpn.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/vie.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/spa.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/ukr.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/fra.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/slk.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/kor.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/ell.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/rus.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/por.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/bul.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/lav.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/lit.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/pol.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/dan-frak.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/deu.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/dan.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/ces.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/cat.traineddata.gz
        http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz)
md5sums=('cc812a261088ea0c3d2da735be35d09f'
         '06fce5f5c0221286eab591819406d91e'
         '127e0b742b615d81c3b97a555acd8285'
         'f4ae2e5668f693cc51c6e3c3f57a8f1d'
         '3787ff0fc1a07517203466830f6f868e'
         '7b50075692e7a07ac8f59e0cde51cfb9'
         'defc498fa09480ef0052fde79f4f84e5'
         'c1e0f0ef07d26a72063802370bbfe2c9'
         'af86cab0da52fff7e83f9c7668617a21'
         'b0f4798bf1f9ee541ae73aff49f08821'
         '966fa3ebe24d7dfade951e0a4a9f52b5'
         '33812ef03197dce20b8c888409d8541a'
         '9a307661a010703cd2bb265a3da5eaff'
         '89992f69802b9f4a36fec40efd95c503'
         'cad3dd7c9401fa0676bf195456ba0c14'
         'af75c7a696b18a1d2e4f7e21a222cf95'
         'dd9078211127189995504f034468fcd6'
         '56a82ac3994f0552d54fd14ff5ed6817'
         'e6000550883684b5e93b7e0a21016287'
         '2e7fbf80215b38f423dcf78e396b92d7'
         '909b811739b2e7d51cc3ca109998353a'
         '0d3a21c18f752eb058e7b854c37b7a69'
         'c477b7faddc044a4595135d0378be34c'
         'd0b59fcfd80f9e09be890647ae93f00d'
         'a7501f9a48bc7ef2fa50cba8b8f0c7b1'
         '1f366f55e5e0725deb751ec847bf42dc'
         '1b4460ab998151f1ed8e48928ded58be'
         'c3d6447245663138f1d3aa4567c72192'
         'cfa8a81df6a34940604fafa7353ffc43'
         'be81a761f61800f6d39393a31435fff3'
         '7aaeb321dbf069d14d2601dc36d3dddc'
         '2e97c952075064834f1cad6a133970fa'
         '308099b2b95834916ec410191c86cd48'
         'd91041ad156cf2db36664e91ef799451')

build() {
  cd $srcdir/$pkgname-$pkgver
  mkdir -p $pkgdir/usr/share/tessdata
  cp $srcdir/*.traineddata $pkgdir/usr/share/tessdata/
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir install || return 1
  find $pkgdir/usr/share/tessdata -type f -exec chmod 0644 {} \;
}