summaryrefslogtreecommitdiff
path: root/libraries/dietlibc/dietlibc.SlackBuild
diff options
context:
space:
mode:
authorMarkus Reichelt <slackbuilds@mareichelt.de>2013-05-19 09:12:06 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-05-19 09:12:06 -0400
commit51621821b742da7de13d522bbc8a827252abcec8 (patch)
tree96ceb5c62632d3f1d7635dcff0be40ab831decad /libraries/dietlibc/dietlibc.SlackBuild
parentb4f7361d06af86903b8342379389d0b666901531 (diff)
downloadslackbuilds-51621821b742da7de13d522bbc8a827252abcec8.tar.gz
libraries/dietlibc: Updated for version 0.33.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/dietlibc/dietlibc.SlackBuild')
-rw-r--r--libraries/dietlibc/dietlibc.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/libraries/dietlibc/dietlibc.SlackBuild b/libraries/dietlibc/dietlibc.SlackBuild
index cef499b3ee..58c90cc2e2 100644
--- a/libraries/dietlibc/dietlibc.SlackBuild
+++ b/libraries/dietlibc/dietlibc.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for dietlibc
-# Copyright (c) 2010 Markus Reichelt, Aachen, DE
+# Copyright (c) 2010-2013 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -22,18 +22,16 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
-
+
PRGNAM=dietlibc
-VERSION=${VERSION:-0.32}
+VERSION=${VERSION:-0.33}
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
@@ -66,7 +64,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
make
make install DESTDIR=$PKG
@@ -76,7 +78,7 @@ cat $CWD/profile.d/dietlibc.sh > $PKG/etc/profile.d/dietlibc.sh
cat $CWD/profile.d/dietlibc.csh > $PKG/etc/profile.d/dietlibc.csh
chmod 0755 $PKG/etc/profile.d/*
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/opt/diet/man -type f -exec gzip -9 {} \;