summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2010-05-24 10:32:09 -0500
committer Robby Workman <rworkman@slackbuilds.org>2010-05-24 10:32:09 -0500
commit082c0d33c802d068f5159f2ef7d0c7f9a43496d4 (patch)
tree7a529a230fbc6eebe12075e63ad75f462ce1528b
parentece0c60acbf7b59a5e50a2be84f53cd169d95807 (diff)
downloadslackbuilds-082c0d33c802d068f5159f2ef7d0c7f9a43496d4.tar.gz
slackbuilds-082c0d33c802d068f5159f2ef7d0c7f9a43496d4.tar.xz
libraries/exiftool: Miscellaneous cleanups
-rw-r--r--libraries/exiftool/exiftool.SlackBuild23
1 files changed, 15 insertions, 8 deletions
diff --git a/libraries/exiftool/exiftool.SlackBuild b/libraries/exiftool/exiftool.SlackBuild
index 0f7a677402..21bf091c96 100644
--- a/libraries/exiftool/exiftool.SlackBuild
+++ b/libraries/exiftool/exiftool.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=exiftool
VERSION=8.00
-ARCH=${ARCH:-i486}
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
@@ -33,14 +42,12 @@ make install DESTDIR=$PKG
mv $PKG/usr/share/man $PKG/usr/man
rmdir $PKG/usr/share
-( cd $PKG/usr/man ; find . -type f -exec gzip -9 {} \; )
+find $PKG/usr/man -type f -exec gzip -9 {} \; )
-( cd $PKG
- find . -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
-)
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
# Kill some empty directories
eval $(perl '-V:archlib')