summaryrefslogtreecommitdiff
path: root/community/yagf
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/yagf
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/yagf')
-rw-r--r--community/yagf/PKGBUILD31
-rw-r--r--community/yagf/yagf.install13
2 files changed, 44 insertions, 0 deletions
diff --git a/community/yagf/PKGBUILD b/community/yagf/PKGBUILD
new file mode 100644
index 000000000..a810ad8c5
--- /dev/null
+++ b/community/yagf/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 85428 2013-03-01 10:43:02Z andrea $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: das-ich <das-ich@yandex.ru>
+
+pkgname=yagf
+pkgver=0.9.2
+pkgrel=3
+pkgdesc="QT4-based GUI for Cuneiform and Tesseract OCRs"
+arch=(i686 x86_64)
+url="http://symmetrica.net/cuneiform-linux/yagf-en.html"
+license=('GPL')
+depends=('qt4' 'aspell')
+optdepends=('cuneiform: recognition tool'
+ 'tesseract: recognition tool'
+ 'xsane: acquire images from a scanner into YAGF directly')
+makedepends=('cmake')
+install=yagf.install
+source=(http://symmetrica.net/cuneiform-linux/${pkgname}-${pkgver}.tar.gz)
+md5sums=('13592e52006d20f71c0094aafb13ed0e')
+
+build() {
+ cd "${srcdir}/${pkgname}-$pkgver"
+ cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release .
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-$pkgver"
+ make DESTDIR=${pkgdir} install
+ [ -d $pkgdir/usr/lib64 ] && mv $pkgdir/usr/lib64 $pkgdir/usr/lib || true
+}
diff --git a/community/yagf/yagf.install b/community/yagf/yagf.install
new file mode 100644
index 000000000..1eb57303c
--- /dev/null
+++ b/community/yagf/yagf.install
@@ -0,0 +1,13 @@
+post_install() {
+ [ -x `which update-mime-database` ] && update-mime-database usr/share/mime
+ [ -x `which gtk-update-icon-cache` ] && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ bin/true
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}