summaryrefslogtreecommitdiff
path: root/community/yagf
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-30 23:14:43 +0000
committerroot <root@rshg054.dnsready.net>2011-08-30 23:14:43 +0000
commitb82f11fd76e83d60504649838e60a235b394160f (patch)
tree4914b89dc1dbc3ea44ae87c567ac7e9fc821c529 /community/yagf
parente13fbaf2cbb72b7e8c8278ea94b70dd4a8ce48b2 (diff)
Tue Aug 30 23:14:43 UTC 2011
Diffstat (limited to 'community/yagf')
-rw-r--r--community/yagf/PKGBUILD12
-rw-r--r--community/yagf/yagf.install13
2 files changed, 20 insertions, 5 deletions
diff --git a/community/yagf/PKGBUILD b/community/yagf/PKGBUILD
index 048e35c59..51438b1a5 100644
--- a/community/yagf/PKGBUILD
+++ b/community/yagf/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 45032 2011-04-14 09:33:23Z spupykin $
+# $Id: PKGBUILD 54990 2011-08-29 13:12:11Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: das-ich <das-ich@yandex.ru>
pkgname=yagf
-pkgver=0.8.6
+pkgver=0.8.7
pkgrel=1
pkgdesc="QT4-based GUI for Cuneiform OCR"
arch=(i686 x86_64)
@@ -12,12 +12,14 @@ license=('GPL')
depends=('cuneiform' 'qt>=4.3' 'aspell')
optdepends=('xsane: acquire images from a scanner into YAGF directly')
makedepends=('cmake')
-source=(http://symmetrica.net/cuneiform-linux/${pkgname}-${pkgver}-Source.tar.gz)
-md5sums=('16582668d9ae34567c4f159c3208bfca')
+install=yagf.install
+source=(http://symmetrica.net/cuneiform-linux/${pkgname}-${pkgver}.tar.gz)
+md5sums=('a05635b4d50058b18891dbb5b3ff09ab')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}-Source"
+ cd "${srcdir}/${pkgname}-${pkgver}"
cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release .
make
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
+}