Package Details: tesseract-git 1:5.0.1.r9.g31a96843-1

Git Clone URL: https://aur.archlinux.org/tesseract-git.git (read-only, click to copy)
Package Base: tesseract-git
Description: Open Source OCR Engine
Upstream URL: https://tesseract-ocr.github.io/
Licenses: Apache
Conflicts: tesseract
Provides: tesseract
Submitter: stativ
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 38
Popularity: 0.043430
First Submitted: 2015-07-02 20:30 (UTC)
Last Updated: 2022-01-23 21:46 (UTC)

Required by (234)

Sources (2)

Latest Comments

1 2 Next › Last »

MarsSeed commented on 2023-09-12 07:43 (UTC) (edited on 2023-09-12 09:50 (UTC) by MarsSeed)

@Thenujan, @Kaiya, please don't use tesseract-ocr-git, use tesseract-git, which is the proper name of this package on Arch Linux.

Kaiya commented on 2022-04-27 12:14 (UTC)

@Thenujan Thanks, that works

Sematre commented on 2022-01-12 17:29 (UTC)

As there now seems to be a new maintainer, I will just post my updated PKGBUILD file here:

# Maintainer: /
# Contributor: Sematre <sematre at gmx dot de>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=tesseract-git
pkgver=5.0.0.r27.gbf7c134b
pkgrel=1

pkgdesc="Open Source text recognition (OCR) Engine"
arch=('any')
url="https://github.com/tesseract-ocr/tesseract"
license=('Apache')

depends=('libpng' 'libtiff' 'libjpeg-turbo' 'zlib' 'giflib' 'gcc-libs' 'curl' 'libarchive' 'leptonica' 'gcc-libs' 'libtiff' 'libpng' 'leptonica' 'giflib')
optdepends=('pango: text2image' 'icu: text2image' 'tesseract-data-git: Trained language data')
makedepends=('git' 'icu' 'cairo' 'pango' 'asciidoc')

provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

install=tesseract.install
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')

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

build() {
  cd "${srcdir}/${pkgname%-git}"

  ./autogen.sh
  ./configure --prefix=/usr

  make
  make training
}

package() {
  cd "${srcdir}/${pkgname%-git}"

  make DESTDIR="${pkgdir}" install
  make DESTDIR="${pkgdir}" training-install
}

Sematre commented on 2021-12-26 18:09 (UTC) (edited on 2021-12-26 18:12 (UTC) by Sematre)

I just send an e-mail to the maintainer and suggested some changes to the PKGBUILD file. Let's hope he/she sees it.

Thenujan commented on 2021-10-21 07:11 (UTC) (edited on 2021-10-22 03:57 (UTC) by Thenujan)

Use this package build instead because master has to be changed to main in build()

# Maintainer: Chris Nixon <chris.nixon@sigma.me.uk>
pkgname="tesseract-ocr-git"
pkgver=4.00.00dev.r677.gd962d344
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' 'autoconf-archive')
provides=('tesseract')
conflicts=('tesseract')
sha256sums=('SKIP')

pkgver() {
  cd tesseract-ocr
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

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

build() {
  cd tesseract-ocr
  git checkout main
  ./autogen.sh
  ./configure --prefix=/usr
  make clean
  make
}

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

LiteracyFanatic commented on 2021-09-13 11:43 (UTC)

Speaking of pkgver(), this package fails to build now because the default branch was renamed from master to main (sigh). Changing master to HEAD in pkgver() fixes the issue.

FabioLolix commented on 2021-09-10 20:55 (UTC)

This pkgbuild, like all your other VCS pkgbuilds, don't have a proper pkgver(), see https://wiki.archlinux.org/title/VCS_package_guidelines#Git

cdbfoster commented on 2017-12-05 16:02 (UTC)

This needs automake to build.

lvu commented on 2017-08-31 17:25 (UTC)

This command git checkout $(git describe --tags `git rev-list --tags --max-count=1`) in PKGBUILD currently checks out the 3.05.01 version. Had to change to git checkout master Plus, autoconf-archive package is needed for build.

stativ commented on 2017-03-29 16:39 (UTC)

iamdrrot: thank you, I added the dependency.