graphics/picasa: Miscellaneous cleanups.

This commit is contained in:
Robby Workman 2010-05-23 23:06:04 -05:00
parent fd88605524
commit 4ee37778e3

View file

@ -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