summaryrefslogtreecommitdiff
path: root/graphics/gimagereader
diff options
context:
space:
mode:
authorwru <gnuandpenguinos@gmail.com>2015-02-20 08:56:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-20 08:56:32 +0700
commit3b7a596405ff2d50369cfda7fb3e89aa531a72bd (patch)
tree7990c62ef82b175ccbeba5b9febeb1044eb0060c /graphics/gimagereader
parentbff111735e1b4cb0ea5a508ecf2668e0a210ea67 (diff)
downloadslackbuilds-3b7a596405ff2d50369cfda7fb3e89aa531a72bd.tar.gz
graphics/gimagereader: Updated for version 3.0.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/gimagereader')
-rw-r--r--graphics/gimagereader/README2
-rw-r--r--graphics/gimagereader/doinst.sh6
-rw-r--r--graphics/gimagereader/gimagereader.SlackBuild27
-rw-r--r--graphics/gimagereader/gimagereader.info8
-rw-r--r--graphics/gimagereader/slack-desc2
5 files changed, 33 insertions, 12 deletions
diff --git a/graphics/gimagereader/README b/graphics/gimagereader/README
index 71e925ebc0..b41c6eaeba 100644
--- a/graphics/gimagereader/README
+++ b/graphics/gimagereader/README
@@ -1 +1 @@
-Gimagereader is a graphical GTK frontend to tesseract.
+Gimagereader is a graphical Gtk/Qt frontend to tesseract.
diff --git a/graphics/gimagereader/doinst.sh b/graphics/gimagereader/doinst.sh
index 5fb28930db..3e5691a052 100644
--- a/graphics/gimagereader/doinst.sh
+++ b/graphics/gimagereader/doinst.sh
@@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/graphics/gimagereader/gimagereader.SlackBuild b/graphics/gimagereader/gimagereader.SlackBuild
index 155005bd00..a78bde6c24 100644
--- a/graphics/gimagereader/gimagereader.SlackBuild
+++ b/graphics/gimagereader/gimagereader.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for gimagereader
-# Copyright 2013 wru <gnuandpenguinos@gmail.com>
+# Copyright 2015 wru <gnuandpenguinos@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gimagereader
-VERSION=${VERSION:-0.9.1}
+VERSION=${VERSION:-3.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,17 +69,32 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# fix some install paths
-sed -i -e "s|share/man|man|" -e "s|share/doc|doc|" setup.py
-
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share/doc
+
+# For manual.html
+cd $PKG/usr/doc
+ ln -s ./$PRGNAM-$VERSION $PRGNAM
+cd -
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff --git a/graphics/gimagereader/gimagereader.info b/graphics/gimagereader/gimagereader.info
index 45f9d3fc43..2b2680f085 100644
--- a/graphics/gimagereader/gimagereader.info
+++ b/graphics/gimagereader/gimagereader.info
@@ -1,10 +1,10 @@
PRGNAM="gimagereader"
-VERSION="0.9.1"
+VERSION="3.0.1"
HOMEPAGE="http://sourceforge.net/projects/gimagereader/"
-DOWNLOAD="http://downloads.sourceforge.net/gimagereader/gimagereader-0.9.1.tar.gz"
-MD5SUM="0779a34cbc3e63b7ae40cdb195ef1e2e"
+DOWNLOAD="http://downloads.sourceforge.net/project/gimagereader/3.0.1/gimagereader-3.0.1.tar.xz"
+MD5SUM="1214e7541674f7ba443a237014562199"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="tesseract pypoppler pyenchant pygtkspell"
+REQUIRES="tesseract qtspell"
MAINTAINER="wru"
EMAIL="gnuandpenguinos@gmail.com"
diff --git a/graphics/gimagereader/slack-desc b/graphics/gimagereader/slack-desc
index 37d9248457..8da7df8575 100644
--- a/graphics/gimagereader/slack-desc
+++ b/graphics/gimagereader/slack-desc
@@ -8,7 +8,7 @@
|-----handy-ruler------------------------------------------------------|
gimagereader: gImageReader (GUI for tesseract)
gimagereader:
-gimagereader: Gimagereader is a simple GTK front-end to tesseract.
+gimagereader: Gimagereader is a simple Gtk/Qt front-end to tesseract.
gimagereader:
gimagereader: http://sourceforge.net/projects/gimagereader/
gimagereader: