mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
101 lines
4.5 KiB
Bash
101 lines
4.5 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=tesseract
|
|
pkgver=3.01
|
|
pkgrel=1
|
|
pkgdesc="An OCR programm"
|
|
arch=(x86_64 i686)
|
|
url="http://code.google.com/p/tesseract-ocr"
|
|
license=("APACHE")
|
|
depends=(libpng libtiff libjpeg zlib giflib gcc-libs leptonica)
|
|
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=('1ba496e51a42358fb9d3ffe781b2d20a'
|
|
'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
|
|
[ -f Makefile.in ] || automake
|
|
[ -f Makefile ] || ./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make DESTDIR=$pkgdir install
|
|
mkdir -p $pkgdir/usr/share/tessdata
|
|
cp $srcdir/*.traineddata $pkgdir/usr/share/tessdata/
|
|
find $pkgdir/usr/share/tessdata -type f -exec chmod 0644 {} \;
|
|
}
|
|
|