desktop/yagf/PKGBUILD

34 lines
1.1 KiB
Bash
Raw Normal View History

pkgname=yagf
2015-05-26 19:13:21 +08:00
pkgver=0.9.5
2013-12-16 04:47:22 +08:00
pkgrel=1
2014-04-12 19:40:53 +08:00
pkgdesc="Qt4-based GUI for Cuneiform OCR"
2015-05-26 19:13:21 +08:00
arch=('x86_64')
url="http://sourceforge.net/projects/yagf-ocr/"
screenshot="http://symmetrica.net/cuneiform-linux/yagf-en.jpeg"
license=('GPL')
2015-05-26 19:13:21 +08:00
depends=('qt' 'aspell')
optdepends=('cuneiform: recognition tool'
'tesseract: recognition tool'
'xsane: acquire images from a scanner into YAGF directly')
makedepends=('cmake')
install=yagf.install
2015-05-26 19:13:21 +08:00
source=("http://downloads.sourceforge.net/project/yagf-ocr/yagf-$pkgver.tar.gz")
sha512sums=('a0b77e49c11be0ed043d3f44b1c48122cdabf0ae4ae69d84bc01eee0a8b084dae8201234e08816065d449e4d47bd704f282b1cd3b31c3539d201e9f32dfef05c')
prepare() {
cd `find ${srcdir}/ -type d -name "${pkgname}*"`
cp src/images/{A,a}lign.png
sed -i '1,1i#include <unistd.h>' src/mainform.cpp
}
build() {
2015-05-26 19:13:21 +08:00
cd `find ${srcdir}/ -type d -name "${pkgname}*"`
cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release .
make
}
2013-12-16 04:47:22 +08:00
package() {
2015-05-26 19:13:21 +08:00
cd `find ${srcdir}/ -type d -name "${pkgname}*"`
make DESTDIR=${pkgdir} install
[ -d $pkgdir/usr/lib64 ] && mv $pkgdir/usr/lib64 $pkgdir/usr/lib || true
2015-05-26 19:13:21 +08:00
}