From 4ee37778e39ef96fb0a6f0ec44e62de64e166bb3 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 23 May 2010 23:06:04 -0500 Subject: graphics/picasa: Miscellaneous cleanups. --- graphics/picasa/picasa.SlackBuild | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'graphics') diff --git a/graphics/picasa/picasa.SlackBuild b/graphics/picasa/picasa.SlackBuild index 6207d5ef4541..6d096a41fc0b 100644 --- a/graphics/picasa/picasa.SlackBuild +++ b/graphics/picasa/picasa.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script of picasa (binary repackaging) -# Copyright 2006-2009 Robby Workman, Northport, Alabama, USA +# Copyright 2006,2007,2008,2009,2010 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +24,18 @@ PRGNAM=picasa VERSION=${VERSION:-3.0.5744} -ARCH=${ARCH:-i386} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i386 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,10 +44,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "x86_64" ]; then SRCARCH=amd64 LIBDIRSUFFIX="64" -else +elif [ "$ARCH" = "i386" ]; then ARCH=i386 SRCARCH=i386 LIBDIRSUFFIX="" +else + printf "\n\n$ARCH is not supported...\n" + exit 1 fi set -e @@ -56,10 +67,10 @@ chmod -R u+w,go+r-w,a-s . # Create symlinks in /usr/bin to picasa and picasafontcfg mkdir -p $PKG/usr/bin -( cd $PKG/usr/bin +cd $PKG/usr/bin ln -fs /opt/google/picasa/3.0/bin/picasa . ln -s /opt/google/picasa/3.0/bin/picasafontcfg . -) +cd - # Install icons mkdir -p $PKG/usr/share/pixmaps -- cgit v1.2.3