aboutsummaryrefslogtreecommitdiff
path: root/graphics
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
parentb72f6369cc91add1502f41eade7b6afca2e7eaa9 (diff)
graphics/maim: Updated for version 5.5.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/maim/maim.SlackBuild23
-rw-r--r--graphics/maim/maim.info10
-rw-r--r--graphics/maim/slack-desc8
3 files changed, 23 insertions, 18 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
diff --git a/graphics/maim/maim.info b/graphics/maim/maim.info
index 1cac581b891d0..ab543f86ef960 100644
--- a/graphics/maim/maim.info
+++ b/graphics/maim/maim.info
@@ -1,10 +1,10 @@
PRGNAM="maim"
-VERSION="2.3.31"
+VERSION="5.5.3"
HOMEPAGE="https://github.com/naelstrof/maim"
-DOWNLOAD="https://github.com/naelstrof/maim/archive/v2.3.31.tar.gz"
-MD5SUM="ad08a7a77cd281eaa6b68c06d87ca1bb"
+DOWNLOAD="https://github.com/naelstrof/maim/archive/v5.5.3/main-5.5.3.tar.gz"
+MD5SUM="ca877cdcf454f454076c6bf7a6d85890"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="imlib2"
-MAINTAINER="Pedro Guimaraes"
-EMAIL="moisespedro15@gmail.com"
+MAINTAINER="klorophatu"
+EMAIL="klorophatu@krutt.org"
diff --git a/graphics/maim/slack-desc b/graphics/maim/slack-desc
index cab61f7c4e512..a7a2822ef62f5 100644
--- a/graphics/maim/slack-desc
+++ b/graphics/maim/slack-desc
@@ -6,14 +6,14 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-maim: maim (screenshot taker)
+maim: maim 5.5.3 (make image)
maim:
+maim: maim is a utility that takes screenshots of your desktop. It's meant
+maim: to overcome shortcomings of scrot and performs better in several ways
maim:
-maim: maim (make image) takes screenshots of your desktop.
maim:
maim:
maim:
maim:
-maim: https://github.com/naelstrof/maim
-maim:
maim:
+maim: https://github.com/naelstrof/maim