graphics/maim: Updated for version 5.5.3.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
klorophatu 2019-05-11 07:16:29 +07:00 committed by Willy Sudiarto Raharjo
parent b72f6369cc
commit 2b5acda08c
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 23 additions and 18 deletions

View File

@ -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

View File

@ -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"

View File

@ -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: maim (make image) takes screenshots of your desktop.
maim:
maim:
maim:
maim:
maim: https://github.com/naelstrof/maim
maim:
maim: