aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gimagereader/gimagereader.SlackBuild28
-rw-r--r--graphics/gimagereader/gimagereader.info6
2 files changed, 16 insertions, 18 deletions
diff --git a/graphics/gimagereader/gimagereader.SlackBuild b/graphics/gimagereader/gimagereader.SlackBuild
index ffe14e730f2a..702bec89a6cf 100644
--- a/graphics/gimagereader/gimagereader.SlackBuild
+++ b/graphics/gimagereader/gimagereader.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for gimagereader
-# Copyright 2015 wru <gnuandpenguinos@gmail.com>
+# Copyright 2016 wru <gnuandpenguinos@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gimagereader
-VERSION=${VERSION:-3.1.2}
+VERSION=${VERSION:-3.1.91}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -54,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
-set -eu
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -69,6 +69,12 @@ 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 {} \;
+# Interface type
+sed -i 's,"qt5","qt4",' CMakeLists.txt
+
+# Path where manual will be installed
+sed -i 's,"share/doc/gimagereader","doc/'$PRGNAM-$VERSION'",' CMakeLists.txt
+
mkdir -p build
cd build
cmake \
@@ -84,17 +90,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| 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
+cp -a AUTHORS COPYING NEWS README $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 cb32a482a6d2..90b1b1a80eaa 100644
--- a/graphics/gimagereader/gimagereader.info
+++ b/graphics/gimagereader/gimagereader.info
@@ -1,8 +1,8 @@
PRGNAM="gimagereader"
-VERSION="3.1.2"
+VERSION="3.1.91"
HOMEPAGE="https://github.com/manisandro/gImageReader/"
-DOWNLOAD="https://github.com/manisandro/gImageReader/releases/download/v3.1.2/gimagereader-3.1.2.tar.xz"
-MD5SUM="131304714f4f2c1042d442388bceb8d4"
+DOWNLOAD="https://github.com/manisandro/gImageReader/releases/download/v3.1.91/gimagereader-3.1.91.tar.xz"
+MD5SUM="c7235895aabd0220ef8adaa3982423e2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="tesseract qtspell"