graphics/viewnior: Updated for version 1.6, new maintainer.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edinaldo P. Silva 2016-11-23 07:58:48 +07:00 committed by Willy Sudiarto Raharjo
parent 58149f25ad
commit b91b92367a
3 changed files with 38 additions and 19 deletions

View file

@ -6,5 +6,5 @@ your images. Viewnior is inspired by big projects like Eye of Gnome,
because of its usability and richness, and by GPicView, because of its
lightweight design and minimal interface.
Viewnior is written in C (GTK+) and uses modified version of the GtkImageView
library by Bjourn Lindqvist.
Viewnior is written in C (GTK+) and uses modified version of the
GtkImageView library by Bjourn Lindqvist.

View file

@ -1,16 +1,36 @@
#!/bin/sh
# Slackware build script for Viewnior
#
# Slackware build script for viewnior.
#
# Written by Šime Ramov <s@ramov.com>
# Copyright 2016 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=viewnior
VERSION=${VERSION:-1.3}
VERSION=${VERSION:-1.6}
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
@ -21,8 +41,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"
@ -42,6 +62,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
mv Viewnior-$PRGNAM-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -50,10 +71,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Add '--enable-wallpaper' to the list of configure options if you
# want the ability to set an image as wallpaper. Please note this only
# works in GNOME environment and requires GConf, which in turn
# requires ORBit2.
./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -71,7 +90,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
AUTHORS COPYING ChangeLog-20090517 INSTALL NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="viewnior"
VERSION="1.3"
VERSION="1.6"
HOMEPAGE="http://xsisqox.github.com/Viewnior/"
DOWNLOAD="http://cloud.github.com/downloads/xsisqox/Viewnior/viewnior-1.3.tar.gz"
MD5SUM="273c379933ae3e74ad414fde00198695"
DOWNLOAD="https://github.com/xsisqox/Viewnior/archive/viewnior-1.6.tar.gz"
MD5SUM="f7d497360c48ce4bce09328d934cc4a4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Šime Ramov"
EMAIL="s@ramov.com"
REQUIRES="gnome-common"
MAINTAINER="Edinaldo P. Silva"
EMAIL="edps.mundognu@gmail.com"