libraries/exiftool: Miscellaneous cleanups

This commit is contained in:
Robby Workman 2010-05-24 10:32:09 -05:00
parent ece0c60acb
commit 082c0d33c8

View file

@ -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 \
find $PKG -name perllocal.pod \
-o -name ".packlist" \
-o -name "*.bs" \
| xargs rm -f
)
# Kill some empty directories
eval $(perl '-V:archlib')