diff options
Diffstat (limited to 'libraries/dietlibc/dietlibc.SlackBuild')
-rw-r--r-- | libraries/dietlibc/dietlibc.SlackBuild | 16 |
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 {} \; |