diff options
author | Michael Wagner <lapinours@web.de> | 2010-05-11 22:53:51 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:53:51 +0200 |
commit | 496dfdb297f5845dba4d196b44357dc985f697f2 (patch) | |
tree | f7655f819c0901b1ce6c1df1ef233c78df8cc2cd | |
parent | 810d64098b6df4174acb8564c7cb13fad0ac572e (diff) |
graphics/kamera: Added to 12.1 repository
-rw-r--r-- | graphics/kamera/README | 9 | ||||
-rw-r--r-- | graphics/kamera/kamera.SlackBuild | 83 | ||||
-rw-r--r-- | graphics/kamera/kamera.info | 8 | ||||
-rw-r--r-- | graphics/kamera/slack-desc | 19 |
4 files changed, 119 insertions, 0 deletions
diff --git a/graphics/kamera/README b/graphics/kamera/README new file mode 100644 index 0000000000000..07691cd0cdee3 --- /dev/null +++ b/graphics/kamera/README @@ -0,0 +1,9 @@ +kamera (digital camera kio_slave) + +Kamera (part of kdegraphics) lets you browse your camera from within +konqueror (URL: camera:/) and is configured via the control center (kcontrol). +This is actually part of kdegraphics, but since it requires libgphoto2 to +compile, it's not part of the stock kdegraphics package; note that this +kamera package will NOT conflict with stock kdegraphics. + +Kamera depends on libgphoto2, which is available from Slackbuilds.org. diff --git a/graphics/kamera/kamera.SlackBuild b/graphics/kamera/kamera.SlackBuild new file mode 100644 index 0000000000000..107554ea3baa7 --- /dev/null +++ b/graphics/kamera/kamera.SlackBuild @@ -0,0 +1,83 @@ +#!/bin/sh + +# Slackware build script for kamera + +# (C) 2008 Michael Wagner <lapinours@web.de> +# 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=kamera +VERSION=3.5.9 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +SRCNAM=kdegraphics + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 +cd $SRCNAM-$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 {} \; + +# Avoid a version number in .la files: +if [ -d /usr/lib/qt ]; then + QTDIR=/usr/lib/qt +fi + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure --prefix=/usr + +cd $PRGNAM +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/* + +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.tgz diff --git a/graphics/kamera/kamera.info b/graphics/kamera/kamera.info new file mode 100644 index 0000000000000..488c673288d65 --- /dev/null +++ b/graphics/kamera/kamera.info @@ -0,0 +1,8 @@ +PRGNAM="kamera" +VERSION="3.5.9" +HOMEPAGE="http://www.kde.org/info/3.5.9.php" +DOWNLOAD="http://download.kde.org/stable/3.5.9/src/kdegraphics-3.5.9.tar.bz2" +MD5SUM="3d75e27180573a4e077e0245055891a5" +MAINTAINER="Michael Wagner" +EMAIL="lapinours@web.de" +APPROVED="rworkman" diff --git a/graphics/kamera/slack-desc b/graphics/kamera/slack-desc new file mode 100644 index 0000000000000..31b5b7d943c69 --- /dev/null +++ b/graphics/kamera/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------------------------------------------------------| +kamera: kamera (digital camera kio_slave) +kamera: +kamera: Kamera lets you browse your camera from within konqueror in kde +kamera: (URL: camera:/) and is configured via the control center. This is +kamera: actually part of kdegraphics, but since it requires libgphoto2 to +kamera: compile, it's not part of the stock kdegraphics package; note that +kamera: this kamera package will NOT conflict with stock kdegraphics. +kamera: +kamera: +kamera: +kamera: |