diff --git a/graphics/kuickshow/README b/graphics/kuickshow/README new file mode 100644 index 0000000000..ba6aa9daba --- /dev/null +++ b/graphics/kuickshow/README @@ -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. diff --git a/graphics/kuickshow/doinst.sh b/graphics/kuickshow/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /dev/null +++ b/graphics/kuickshow/doinst.sh @@ -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 diff --git a/graphics/kuickshow/kuickshow.SlackBuild b/graphics/kuickshow/kuickshow.SlackBuild new file mode 100644 index 0000000000..1592d7de21 --- /dev/null +++ b/graphics/kuickshow/kuickshow.SlackBuild @@ -0,0 +1,74 @@ +#!/bin/sh + +# Slackware build script for KuickShow + +# Written by David Melik + +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} diff --git a/graphics/kuickshow/kuickshow.info b/graphics/kuickshow/kuickshow.info new file mode 100644 index 0000000000..63c0d88860 --- /dev/null +++ b/graphics/kuickshow/kuickshow.info @@ -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" diff --git a/graphics/kuickshow/slack-desc b/graphics/kuickshow/slack-desc new file mode 100644 index 0000000000..bf0e293732 --- /dev/null +++ b/graphics/kuickshow/slack-desc @@ -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: