summaryrefslogtreecommitdiff
path: root/misc/klibc/klibc.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-07 19:27:36 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-07 20:43:31 +0700
commitf33b47f40a24745040a9b7a077de108b4b377c3a (patch)
tree278d10c00327dd732a6330bb9eab3eb610f5f9b5 /misc/klibc/klibc.SlackBuild
parent14aa94ddd525e15a1d8f1e845051024a74972994 (diff)
downloadslackbuilds-f33b47f40a24745040a9b7a077de108b4b377c3a.tar.gz
misc/klibc: Updated for version 2.0.4.
x86 is considered unsupported for now since it failed to build. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/klibc/klibc.SlackBuild')
-rw-r--r--misc/klibc/klibc.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/misc/klibc/klibc.SlackBuild b/misc/klibc/klibc.SlackBuild
index e374d1d35d..1f99c33353 100644
--- a/misc/klibc/klibc.SlackBuild
+++ b/misc/klibc/klibc.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware build script for <appname>
+# Slackware build script for klibc
# Copyright 2014 Matt Dinslage (daedra1980@gmail.com), Springfield, MO, USA
# All rights reserved.
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=klibc
-VERSION=${VERSION:-2.0.3}
+VERSION=${VERSION:-2.0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,14 +62,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ $ARCH = "x86_64" ]; then
sed -i 's,$(prefix)/lib,$(prefix)/lib64,g' Makefile
@@ -79,14 +79,15 @@ fi
# Thanks to the gentoo team for the patch.
patch -p1 < $CWD/klibc-2.0.3-kernel-uapi.patch
-KLIBCKERNELSRC=/lib/modules/$KERNEL/source HOSTCFLAGS=$SLKCFLAGS make
+KLIBCKERNELSRC=/lib/modules/$KERNEL/source HOSTCFLAGS=$SLKCFLAGS make
KLIBCKERNELSRC=/lib/modules/$KERNEL/source make install INSTALLROOT=$PKG
-
-gzip -9 $PKG/usr/man/man?/*.?
-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/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild