aboutsummaryrefslogtreecommitdiff
path: root/libraries/exiftool
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-24 10:32:09 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-24 10:32:09 -0500
commit082c0d33c802d068f5159f2ef7d0c7f9a43496d4 (patch)
tree7a529a230fbc6eebe12075e63ad75f462ce1528b /libraries/exiftool
parentece0c60acbf7b59a5e50a2be84f53cd169d95807 (diff)
libraries/exiftool: Miscellaneous cleanups
Diffstat (limited to 'libraries/exiftool')
-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 0f7a67740275..21bf091c9654 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')