summaryrefslogtreecommitdiff
path: root/system/set_rlimits/set_rlimits.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/set_rlimits/set_rlimits.SlackBuild')
-rw-r--r--system/set_rlimits/set_rlimits.SlackBuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/system/set_rlimits/set_rlimits.SlackBuild b/system/set_rlimits/set_rlimits.SlackBuild
index 8eed873681..a63d64cd9a 100644
--- a/system/set_rlimits/set_rlimits.SlackBuild
+++ b/system/set_rlimits/set_rlimits.SlackBuild
@@ -10,17 +10,15 @@ VERSION=1.3.0
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)
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PKGNAME
OUTPUT=${OUTPUT:-/tmp}
@@ -43,7 +41,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
+cd $TMP
rm -rf $PKGNAME-$VERSION
tar xvf $CWD/$PKGNAME-$VERSION.tgz
cd $PKGNAME-$VERSION
@@ -57,7 +55,7 @@ make clean # oops :-)
make EXTRA_CFLAGS="$SLKCFLAGS" PREFIX=/usr
make install PREFIX=/usr DESTDIR=$PKG
-mv $PKG/etc/set_rlimits.conf $PKG/etc/set_rlimits.conf.new
+mv $PKG/etc/set_rlimits.conf $PKG/etc/set_rlimits.conf.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true