diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-11 22:23:17 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:23:17 +0200 |
commit | 1512a965e412ff2b39b89bf0d76600538a133b5a (patch) | |
tree | 319e61eba28af1fb291fcb267df94ee4f8c61bbd /graphics/picasa/picasa.SlackBuild | |
parent | 7fab1c6a752ff31bf056b334a2b834735cde4507 (diff) | |
download | slackbuilds-1512a965e412ff2b39b89bf0d76600538a133b5a.tar.gz |
graphics/picasa: Updated for version 2.7.3736
Diffstat (limited to 'graphics/picasa/picasa.SlackBuild')
-rw-r--r-- | graphics/picasa/picasa.SlackBuild | 86 |
1 files changed, 49 insertions, 37 deletions
diff --git a/graphics/picasa/picasa.SlackBuild b/graphics/picasa/picasa.SlackBuild index af51d9f75c..9bc81031b1 100644 --- a/graphics/picasa/picasa.SlackBuild +++ b/graphics/picasa/picasa.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script of picasa (binary repackaging) -# Copyright 2006 Robby Workman (http://rlworkman.net) +# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,11 +23,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=picasa -VERSION=2.2.2820 +VERSION=${VERSION:-2.7.3736} ARCH=${ARCH:-i386} # The binary is built for i386 - leave this alone BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` + +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -38,52 +39,63 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -# Extract the picasa stuff from the installer; don't run the install script -/bin/sh $CWD/picasa-$VERSION-5.$ARCH.bin --target $TMP/$PRGNAM-$VERSION --noexec +cd $PKG +ar -x $CWD/${PRGNAM}_$VERSION-15_${ARCH}.deb +tar xvf data.tar.gz +rm data.tar.gz control.tar.gz debian-binary -# Move the relevant parts into the upcoming package -cd $TMP/$PRGNAM-$VERSION -mkdir -p $PKG/opt/$PRGNAM-$VERSION -mv bin lib wine $PKG/opt/$PRGNAM-$VERSION +# Create symlinks in /usr/bin to picasa, mediadetector, and picasafontcfg +mkdir -p $PKG/usr/bin +( cd $PKG/usr/bin + ln -fs /opt/picasa/bin/picasa . + ln -s /opt/picasa/bin/picasafontcfg . + ln -s /opt/picasa/bin/mediadetector . +) -# Install desktop file and icons; modify desktop files as needed -mkdir -p $PKG/usr/share/{applications,pixmaps} -install -m 0644 $TMP/$PRGNAM-$VERSION/desktop/picasa.xpm \ +# Install icons +mkdir -p $PKG/usr/share/pixmaps +install -m 0644 $PKG/opt/picasa/desktop/picasa.xpm \ $PKG/usr/share/pixmaps/picasa.xpm -install -m 0644 $TMP/$PRGNAM-$VERSION/desktop/google-picasa.desktop.template \ - $PKG/usr/share/applications/google-picasa.desktop -sed -i s#EXEC#\/usr\/bin\/picasa# \ - $PKG/usr/share/applications/google-picasa.desktop -sed -i s#ICON#\/usr\/share\/pixmaps\/picasa.xpm# \ - $PKG/usr/share/applications/google-picasa.desktop -install -m 0644 $TMP/$PRGNAM-$VERSION/desktop/google-picasa-mediadetector.desktop.template \ - $PKG/usr/share/applications/google-picasa-mediadetector.desktop -sed -i s#EXEC#\/usr\/bin\/mediadetector# \ - $PKG/usr/share/applications/google-picasa-mediadetector.desktop -sed -i s#ICON#\/usr\/share\/pixmaps\/picasa.xpm# \ - $PKG/usr/share/applications/google-picasa-mediadetector.desktop +install -m 0644 $PKG/opt/picasa/desktop/picasa-fontcfg.xpm \ + $PKG/usr/share/pixmaps/picasa-fontcfg.xpm -# Install documentation -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/scripts -for i in GPLV2 LGPLV2 LICENSE.FOSS README ; -do \ - install -m 0644 $TMP/$PRGNAM-$VERSION/$i $PKG/usr/doc/$PRGNAM-$VERSION/$i ; +# Install desktop files for menu entries +mkdir -p $PKG/usr/share/applications +sed -e s#EXEC#picasa# -e s#ICON#picasa.xpm# \ + $PKG/opt/picasa/desktop/google-picasa.desktop.template \ + > $PKG/usr/share/applications/google-picasa.desktop +sed -e s#EXEC#mediadetector# -e s#ICON#picasa.xpm# \ + $PKG/opt/picasa/desktop/google-picasa-mediadetector.desktop.template \ + > $PKG/usr/share/applications/google-picasa-mediadetector.desktop +sed -e s#EXEC#picasafontcfg# -e s#ICON#picasa-fontcfg.xpm# \ + $PKG/opt/picasa/desktop/google-picasa-fontcfg.desktop.template \ + > $PKG/usr/share/applications/google-picasa-fontcfg.desktop +for i in $PKG/usr/share/applications/*.desktop ; do + echo "Categories=Graphics;Photography;Photograph;Viewer;2DGraphics;Application;Applications" \ + >> $i ; done + +# Install mime information +mkdir -p $PKG/usr/share/mime/packages +echo 'application/x-picasa-detect; false; description=Picasa Installation detection' \ + > $PKG/usr/share/mime/packages/picasa + +# Relocate docs to appropriate place +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/scripts +mv $PKG/opt/picasa/{LICENSE.FOSS,README} \ + $PKG/usr/doc/$PRGNAM-$VERSION + +# Add some unsupported stuff (feel free to play, but unless you figure out +# how to integrate them correctly for *everyone*, leave us alone) :) +# --rworkman for i in \ picasa-hook-email.sh.template picasa-hook-filemanager.sh.template \ picasa-hook-mimehandler.sh.template picasa-hook-urlhandler.sh.template ; do \ - install -m 0755 $TMP/$PRGNAM-$VERSION/desktop/$i \ + ln -s /opt/picasa/desktop/$i \ $PKG/usr/doc/$PRGNAM-$VERSION/scripts/$i ; done -# Create symlinks in /usr/bin to picasa and mediadetector -mkdir -p $PKG/usr/bin -( cd $PKG/usr/bin - ln -s ../../opt/$PRGNAM-$VERSION/bin/picasa picasa - ln -s ../../opt/$PRGNAM-$VERSION/bin/mediadetector mediadetector -) - # Add slack-desc and doinst.sh (which updates desktop database after install) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |