summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a298f3eef7a0a9526de3a1555e9967bfaf659f5e (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
# Maintainer: Chris Nixon <chris.nixon@sigma.me.uk>
pkgname="tesseract-ocr-git"
pkgver=4.00.00alpha.r245.g5b45e5a2
pkgrel=1
pkgdesc="OCR Engine developed at HP Labs and now sponsored by Google."
arch=('i686' 'x86_64')
url="https://code.google.com/p/tesseract-ocr/"
license=('Apache')
groups=()
depends=('gcc-libs' 'libtiff' 'libpng' 'leptonica' 'giflib' 'libjpeg')
optdepends=('cairo' 'icu' 'pango')
source=('tesseract-ocr::git+https://github.com/tesseract-ocr/tesseract')
makedepends=('git' 'pango' 'icu' 'cairo')
provides=('tesseract')
conflicts=('tesseract')
sha256sums=('SKIP')

pkgver() {
    cd tesseract-ocr
    echo $(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
}

build() {
    cd tesseract-ocr
    git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
    ./autogen.sh
    ./configure --prefix=/usr
    make clean
    make
}

package() {
    cd tesseract-ocr
    make DESTDIR="$pkgdir/" install
}