diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2017-03-12 23:36:10 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-15 17:38:14 +0700 |
commit | 3ae87dd0ba2941e92995a151d1ddbd7310b1ca1f (patch) | |
tree | d9214747c9af8dd11d5afbb5b80ff5c3f3b87a7f | |
parent | ec0f161ca552d2fef5a10d16b35d0d1498589ff1 (diff) | |
download | slackbuilds-3ae87dd0ba2941e92995a151d1ddbd7310b1ca1f.tar.gz |
system/cpuinfo2cpuflags: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/cpuinfo2cpuflags/README | 8 | ||||
-rw-r--r-- | system/cpuinfo2cpuflags/cpuinfo2cpuflags.SlackBuild | 9 | ||||
-rw-r--r-- | system/cpuinfo2cpuflags/slack-desc | 2 |
3 files changed, 9 insertions, 10 deletions
diff --git a/system/cpuinfo2cpuflags/README b/system/cpuinfo2cpuflags/README index 1b0d12c68a..6ada33eeca 100644 --- a/system/cpuinfo2cpuflags/README +++ b/system/cpuinfo2cpuflags/README @@ -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. diff --git a/system/cpuinfo2cpuflags/cpuinfo2cpuflags.SlackBuild b/system/cpuinfo2cpuflags/cpuinfo2cpuflags.SlackBuild index 1a4ee02023..4496b9de6a 100644 --- a/system/cpuinfo2cpuflags/cpuinfo2cpuflags.SlackBuild +++ b/system/cpuinfo2cpuflags/cpuinfo2cpuflags.SlackBuild @@ -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 diff --git a/system/cpuinfo2cpuflags/slack-desc b/system/cpuinfo2cpuflags/slack-desc index baa5cf5f82..1a8b6b7b0b 100644 --- a/system/cpuinfo2cpuflags/slack-desc +++ b/system/cpuinfo2cpuflags/slack-desc @@ -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: |