diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 03:07:14 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 23:21:45 -0500 |
commit | 47dd33fc0ea106d67b05554f3529ac8402d290c1 (patch) | |
tree | 0d06a91bda9759f9b0f1ee42e57d2f4608fe20da /libraries | |
parent | 6396b6f56dd34974cf08b4611b37bc20c159d62d (diff) |
libraries/locale-gettext: Miscellaneous cleanups
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/locale-gettext/locale-gettext.SlackBuild | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/libraries/locale-gettext/locale-gettext.SlackBuild b/libraries/locale-gettext/locale-gettext.SlackBuild index 35547a194098..061b82878c70 100644 --- a/libraries/locale-gettext/locale-gettext.SlackBuild +++ b/libraries/locale-gettext/locale-gettext.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for locale-gettext perl module -# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA +# Copyright 2006,2007,2008,2010 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +24,19 @@ PRGNAM=locale-gettext VERSION=1.05 -ARCH=${ARCH:-i486} BUILD=${BUILD:-2} 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 @@ -51,18 +60,14 @@ cp -a README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mv $PKG/usr/share/man $PKG/usr/man -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; + rm -rf $PKG/usr/share -( cd $PKG # Remove 'special' files - find . -name perllocal.pod \ + find $PKG -name perllocal.pod \ -o -name "\.packlist" \ -o -name "*.bs" \ | xargs rm -f -) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |