graphics/kuickshow: Added (image viewer for kde)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
David Melik 2012-12-02 22:18:06 -06:00 committed by dsomero
parent ec193f5ccf
commit 5afba9eac6
5 changed files with 118 additions and 0 deletions

View file

@ -0,0 +1,6 @@
KuickShow displays images using all the available space, without being wasted
in bars or menus. It also has a smart automatic zooming that scales images
according to its size. You can use the integrated file browser to choose
images, or navigate through a folder with the mousewheel or the keyboard. It
also has fullscreen view and slideshow, and supports a wide range of image
formats.

View file

@ -0,0 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -0,0 +1,74 @@
#!/bin/sh
# Slackware build script for KuickShow
# Written by David Melik <dchmelik @ gmail dot com>
PRGNAM=kuickshow
VERSION=${VERSION:-0.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
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
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="kuickshow"
VERSION="0.9.1"
HOMEPAGE="http://userbase.kde.org/KuickShow"
DOWNLOAD="http://hosti.leonde.de/~gis/kuickshow-0.9.1.tar.bz2"
MD5SUM="6866128ee3ef3d0dde809cd5b23d2472"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="David Melik"
EMAIL="dchmelik@gmail.com"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
kuickshow: KuickShow (image viewer for kde)
kuickshow:
kuickshow: KuickShow displays images using all the available space, without being
kuickshow: wasted in bars or menus. It also has a smart automatic zooming that
kuickshow: scales images according to its size. You can use the integrated file
kuickshow: browser to choose images, or navigate through a folder with the
kuickshow: mousewheel or the keyboard. It also has fullscreen view and slideshow,
kuickshow: and supports a wide range of image formats.
kuickshow:
kuickshow: Homepage: http://userbase.kde.org/KuickShow
kuickshow: