summaryrefslogtreecommitdiff
path: root/graphics/fotoxx/fotoxx.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-22 23:18:00 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-23 23:21:42 -0500
commit197f6f3d9776631baaa3bb7e30f5975434d08d04 (patch)
tree4292af0b4d31c84269aefb92fce009d767748954 /graphics/fotoxx/fotoxx.SlackBuild
parentc6c9d3b76d9dfb57adea26f2525c2f8c6e1a8967 (diff)
downloadslackbuilds-197f6f3d9776631baaa3bb7e30f5975434d08d04.tar.gz
graphics/fotoxx: Updated for version 10.3.1.
Diffstat (limited to 'graphics/fotoxx/fotoxx.SlackBuild')
-rw-r--r--graphics/fotoxx/fotoxx.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/graphics/fotoxx/fotoxx.SlackBuild b/graphics/fotoxx/fotoxx.SlackBuild
index b27b445801..9b3173eb4d 100644
--- a/graphics/fotoxx/fotoxx.SlackBuild
+++ b/graphics/fotoxx/fotoxx.SlackBuild
@@ -23,11 +23,20 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fotoxx
-VERSION=9.9
-ARCH=${ARCH:-i486}
+VERSION=10.3.1
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -76,9 +85,6 @@ mkdir -p $PKG/usr/share/{applications,pixmaps}
cat $CWD/fotoxx.desktop > $PKG/usr/share/applications/fotoxx.desktop
( cd $PKG/usr/share/pixmaps ; ln -s ../fotoxx/icons/fotoxx.png )
-# Fixup a few other nits
-mv $PKG/usr/share/fotoxx/locales $PKG/usr/share/locale
-
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true