From 526f424fc825c86f901785ba95309bda4756fc47 Mon Sep 17 00:00:00 2001 From: Robert Zelic Date: Sat, 30 Jun 2012 12:32:10 -0400 Subject: graphics/gnome-web-photo: Added (GNOME Web Photo) Signed-off-by: dsomero --- graphics/gnome-web-photo/README | 3 + graphics/gnome-web-photo/doinst.sh | 9 ++ .../gnome-web-photo/gnome-web-photo.SlackBuild | 101 +++++++++++++++++++++ graphics/gnome-web-photo/gnome-web-photo.info | 10 ++ graphics/gnome-web-photo/slack-desc | 12 +++ 5 files changed, 135 insertions(+) create mode 100644 graphics/gnome-web-photo/README create mode 100644 graphics/gnome-web-photo/doinst.sh create mode 100644 graphics/gnome-web-photo/gnome-web-photo.SlackBuild create mode 100644 graphics/gnome-web-photo/gnome-web-photo.info create mode 100644 graphics/gnome-web-photo/slack-desc (limited to 'graphics') diff --git a/graphics/gnome-web-photo/README b/graphics/gnome-web-photo/README new file mode 100644 index 0000000000..67ca3e39fa --- /dev/null +++ b/graphics/gnome-web-photo/README @@ -0,0 +1,3 @@ +GNOME Web Photographer is a tool to generate full-size image files +and thumbnails from HTML files and web pages. It can also be used +to print those. diff --git a/graphics/gnome-web-photo/doinst.sh b/graphics/gnome-web-photo/doinst.sh new file mode 100644 index 0000000000..5c2c60905f --- /dev/null +++ b/graphics/gnome-web-photo/doinst.sh @@ -0,0 +1,9 @@ +schema_install() { + SCHEMA="$1" + GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \ + chroot . gconftool-2 --makefile-install-rule \ + /etc/gconf/schemas/$SCHEMA \ + 1>/dev/null +} + +schema_install thumbnailer.schemas diff --git a/graphics/gnome-web-photo/gnome-web-photo.SlackBuild b/graphics/gnome-web-photo/gnome-web-photo.SlackBuild new file mode 100644 index 0000000000..f321531602 --- /dev/null +++ b/graphics/gnome-web-photo/gnome-web-photo.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh + +# Slackware build script for GNOME Web Photo + +# Copyright 2012 Robert Zelic, Novi Sad, Serbia +# 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=gnome-web-photo +VERSION=${VERSION:-0.10.6} +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.xz +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux \ + --with-gtk=2.0 + +make +make install DESTDIR=$PKG + +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/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING* HACKING INSTALL NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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/gnome-web-photo/gnome-web-photo.info b/graphics/gnome-web-photo/gnome-web-photo.info new file mode 100644 index 0000000000..bc1a7db7c0 --- /dev/null +++ b/graphics/gnome-web-photo/gnome-web-photo.info @@ -0,0 +1,10 @@ +PRGNAM="gnome-web-photo" +VERSION="0.10.6" +HOMEPAGE="https://launchpad.net/gnome-web-photo" +DOWNLOAD="http://ftp.gnome.org/pub/GNOME/sources/gnome-web-photo/0.10/gnome-web-photo-0.10.6.tar.xz" +MD5SUM="6fbf72173149ffae57e66605e4898113" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Robert Zelic" +EMAIL="zerobertons@yahoo.com" +APPROVED="dsomero" diff --git a/graphics/gnome-web-photo/slack-desc b/graphics/gnome-web-photo/slack-desc new file mode 100644 index 0000000000..656f147cdc --- /dev/null +++ b/graphics/gnome-web-photo/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +gnome-web-photo: gnome-web-photo (GNOME Web Photo) +gnome-web-photo: +gnome-web-photo: GNOME Web Photographer is a tool to generate full-size image files +gnome-web-photo: and thumbnails from HTML files and web pages. It can also be used +gnome-web-photo: to print those. +gnome-web-photo: +gnome-web-photo: Homepage: https://launchpad.net/gnome-web-photo +gnome-web-photo: +gnome-web-photo: +gnome-web-photo: +gnome-web-photo: -- cgit v1.2.3