aboutsummaryrefslogtreecommitdiff
path: root/libraries/dietlibc
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-26 22:06:40 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-26 23:57:57 -0500
commit70119f2c529d414ad061d3f731a99ba476e8e26c (patch)
tree379bac746c1d5d10082ae443f174c892a132c4db /libraries/dietlibc
parentdd10c3dbae33cc8f4ecef71b35c49d76086277cc (diff)
libraries/dietlibc: Miscellaneous cleanups
Diffstat (limited to 'libraries/dietlibc')
-rw-r--r--libraries/dietlibc/dietlibc.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/libraries/dietlibc/dietlibc.SlackBuild b/libraries/dietlibc/dietlibc.SlackBuild
index e9de8dbc1d50..cef499b3eeee 100644
--- a/libraries/dietlibc/dietlibc.SlackBuild
+++ b/libraries/dietlibc/dietlibc.SlackBuild
@@ -25,10 +25,19 @@
PRGNAM=dietlibc
VERSION=${VERSION:-0.32}
-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) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -70,10 +79,7 @@ chmod 0755 $PKG/etc/profile.d/*
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/opt/diet/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/opt/diet/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \