diff options
Diffstat (limited to 'graphics/qiv')
-rw-r--r-- | graphics/qiv/README | 9 | ||||
-rw-r--r-- | graphics/qiv/qiv.SlackBuild | 76 | ||||
-rw-r--r-- | graphics/qiv/qiv.info | 10 | ||||
-rw-r--r-- | graphics/qiv/slack-desc | 19 |
4 files changed, 114 insertions, 0 deletions
diff --git a/graphics/qiv/README b/graphics/qiv/README new file mode 100644 index 0000000000..c339a0b909 --- /dev/null +++ b/graphics/qiv/README @@ -0,0 +1,9 @@ +Quick Image Viewer (qiv) is a very small and pretty fast GDK/Imlib +image viewer. Features include zoom, maxpect, scale down, fullscreen, +brightness/contrast/gamma correction, slideshow, pan with keyboard +and mouse, rotate left/right, flip, delete (move to .qiv-trash/), +jump to image x, jump forward/backward x images, filename filter, and +you can use qiv to set your X11-Desktop background. + +This requires imlib2. + diff --git a/graphics/qiv/qiv.SlackBuild b/graphics/qiv/qiv.SlackBuild new file mode 100644 index 0000000000..53dc4f734e --- /dev/null +++ b/graphics/qiv/qiv.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/sh + +# Slackware build script for qiv + +# Written by Pablo Santamaria (pablosantamaria@gmail.com) + +PRGNAM=qiv +VERSION=${VERSION:-2.2.3} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +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" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tgz +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 {} \; + +sed -i "s/-O2 -Wall/$SLKCFLAGS/" Makefile +make + +# Simple and stupid install +mkdir -p $PKG/usr/bin +mkdir -p $PKG/usr/man/man1 +install -s -m 0755 qiv $PKG/usr/bin +install -m 0644 qiv.1 $PKG/usr/man/man1 + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true +) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + Changelog README* intro.jpg qiv-command.example \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/graphics/qiv/qiv.info b/graphics/qiv/qiv.info new file mode 100644 index 0000000000..793982ba81 --- /dev/null +++ b/graphics/qiv/qiv.info @@ -0,0 +1,10 @@ +PRGNAM="qiv" +VERSION="2.2.3" +HOMEPAGE="http://spiegl.de/qiv/" +DOWNLOAD="http://spiegl.de/qiv/download/qiv-2.2.3.tgz" +DOWNLOAD_x86_64="" +MD5SUM="f692f665ad429f13c732156351420850" +MD5SUM_x86_64="" +MAINTAINER="Pablo Santamaria" +EMAIL="pablosantamaria@gmail.com" +APPROVED="dsomero" diff --git a/graphics/qiv/slack-desc b/graphics/qiv/slack-desc new file mode 100644 index 0000000000..6b64759e8b --- /dev/null +++ b/graphics/qiv/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 ':'. + + |-----handy-ruler------------------------------------------------------| +qiv: qiv (Quick Image Viewer) +qiv: +qiv: Quick Image Viewer (qiv) is a very small and pretty fast GDK/Imlib +qiv: image viewer. Features include zoom, maxpect, scale down, fullscreen, +qiv: brightness/contrast/gamma correction, slideshow, pan with keyboard +qiv: and mouse, rotate left/right, flip, delete (move to .qiv-trash/), +qiv: jump to image x, jump forward/backward x images, filename filter, and +qiv: you can use qiv to set your X11-Desktop background. +qiv: +qiv: +qiv: |