system/cpuinfo2cpuflags: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edinaldo P. Silva 2017-03-12 23:36:10 +07:00 committed by Willy Sudiarto Raharjo
parent ec0f161ca5
commit 3ae87dd0ba
3 changed files with 9 additions and 10 deletions

View file

@ -2,8 +2,8 @@ cpuinfo2cpuflags (guess CPU_FLAGS_X86 flags for the host)
cpuinfo2cpuflags is a tool to guess CPU_FLAGS_X86 flags for the host.
Call the cpuid instruction to obtain the supported CPU feature bits
instead of reading the preprocessed values from Linux-specific
/proc/cpuinfo. This increases portability across systems and accuracy of
information -- supported instructions depend on the version of the
Call the cpuid instruction to obtain the supported CPU feature bits
instead of reading the preprocessed values from Linux-specific
/proc/cpuinfo. This increases portability across systems and accuracy
of information -- supported instructions depend on the version of the
program rather than the Linux kernel.

View file

@ -2,7 +2,7 @@
#
# Slackware build script for cpuinfo2cpuflags.
#
# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=cpuinfo2cpuflags
VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -65,6 +65,7 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2
mv $PRGNAM-$SRCVER $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -89,10 +90,8 @@ make install DESTDIR=$PKG
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
DOCS="COPYING NEWS README"
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -8,7 +8,7 @@
|-----handy-ruler------------------------------------------------------|
cpuinfo2cpuflags: cpuinfo2cpuflags (guess CPU_FLAGS_X86 flags for the host)
cpuinfo2cpuflags:
cpuinfo2cpuflags: cpuinfo2cpuflags is a tool to guess CPU_FLAGS_X86 flags for the host.
cpuinfo2cpuflags: Tool to generate CPU_FLAGS_* for your CPU.
cpuinfo2cpuflags:
cpuinfo2cpuflags: Home page: https://github.com/mgorny/cpuid2cpuflags
cpuinfo2cpuflags: