diff options
Diffstat (limited to 'libraries/exiftool')
-rw-r--r-- | libraries/exiftool/exiftool.SlackBuild | 23 |
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') |