summaryrefslogtreecommitdiff
path: root/graphics/gimagereader/gimagereader.SlackBuild
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/gimagereader.SlackBuild
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/gimagereader.SlackBuild')
-rw-r--r--graphics/gimagereader/gimagereader.SlackBuild27
1 files changed, 21 insertions, 6 deletions
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