aboutsummaryrefslogtreecommitdiff
path: root/graphics/maim/maim.SlackBuild
diff options
context:
space:
mode:
authorklorophatu <klorophatu@krutt.org>2019-05-11 07:16:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-05-11 07:16:29 +0700
commit2b5acda08c70fa07c5fb6b8a5a3500c321d0e094 (patch)
tree1e1663283cb7530ab13ea846397eb9bfd228787b /graphics/maim/maim.SlackBuild
parentb72f6369cc91add1502f41eade7b6afca2e7eaa9 (diff)
graphics/maim: Updated for version 5.5.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/maim/maim.SlackBuild')
-rw-r--r--graphics/maim/maim.SlackBuild23
1 files changed, 14 insertions, 9 deletions
diff --git a/graphics/maim/maim.SlackBuild b/graphics/maim/maim.SlackBuild
index 366cd701e3e7d..47823ca697875 100644
--- a/graphics/maim/maim.SlackBuild
+++ b/graphics/maim/maim.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for maim
-# Copyright 2014 <moisespedro15@gmail.com>
+# Copyright 2019 klorophatu
# 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=maim
-VERSION=${VERSION:-2.3.31}
+VERSION=${VERSION:-5.5.3}
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"
@@ -56,11 +56,12 @@ fi
set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,13 +70,17 @@ 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 {} \;
- cmake ./
- make
- make install DESTDIR=$PKG
+cmake -DCMAKE_INSTALL_PREFIX="/usr/" ./
+
+make
+make install DESTDIR=$PKG
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
+find $PKG/usr/share/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/share/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING README.md license.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild