From b82f11fd76e83d60504649838e60a235b394160f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Aug 2011 23:14:43 +0000 Subject: Tue Aug 30 23:14:43 UTC 2011 --- community/yagf/PKGBUILD | 12 +++++++----- community/yagf/yagf.install | 13 +++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 community/yagf/yagf.install (limited to 'community/yagf') 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 # Contributor: das-ich 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 +} -- cgit v1.2.3-54-g00ecf