diff options
author | Eugene M <damagedone@gmx.com> | 2017-01-06 20:30:41 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-06 20:30:41 +0700 |
commit | eef054355f292ee2eae6af81f2a7add6dfb4a8d3 (patch) | |
tree | 27d9a88229c9281ad60d4af7b499252c5347cae3 /graphics/sxiv/sxiv.SlackBuild | |
parent | 5e2dfef7a7adb1398cd10bec098743abf9470296 (diff) | |
download | slackbuilds-eef054355f292ee2eae6af81f2a7add6dfb4a8d3.tar.gz |
graphics/sxiv: Updated for version 1.3.2 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/sxiv/sxiv.SlackBuild')
-rw-r--r-- | graphics/sxiv/sxiv.SlackBuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/graphics/sxiv/sxiv.SlackBuild b/graphics/sxiv/sxiv.SlackBuild index 9638ccbcb2..3bd232ee81 100644 --- a/graphics/sxiv/sxiv.SlackBuild +++ b/graphics/sxiv/sxiv.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for sxiv -# Copyright 2013 Ken Rimlinger +# Copyright 2013-2017 Ken Rimlinger # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by Eugene M., <damagedone at gmx dot com> + PRGNAM=sxiv -VERSION=${VERSION:-1.3.1} +VERSION=${VERSION:-1.3.2} 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 +42,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" @@ -60,7 +62,7 @@ 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 . \ @@ -72,7 +74,7 @@ find -L . \ make install \ PREFIX=/usr \ MANPREFIX=/usr/man \ - CFLAGS="-std=c99 -Wall -pedantic $SLKCFLAGS -I/usr/include -DHAVE_GIFLIB" \ + CFLAGS="-Wall -pedantic $SLKCFLAGS -I/usr/include -DHAVE_GIFLIB" \ DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -85,6 +87,8 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +install -D -m 0644 ./sxiv.desktop $PKG/usr/share/applications/sxiv.desktop + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |