diff options
author | Philip Lacroix <slackph at posteo dot de> | 2020-02-15 08:09:14 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-02-15 08:09:14 +0700 |
commit | 320dc7d69d662c72bf7d01240c6684d1730dffe0 (patch) | |
tree | 29213f4cccaae2f2456696b0114ae0403fb19689 /python | |
parent | 51523e5c4b5b52d14c51b5beac1bf40da5962bee (diff) | |
download | slackbuilds-320dc7d69d662c72bf7d01240c6684d1730dffe0.tar.gz |
python/py-cpuinfo: Updated for version 5.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/py-cpuinfo/py-cpuinfo.SlackBuild | 24 | ||||
-rw-r--r-- | python/py-cpuinfo/py-cpuinfo.info | 6 |
2 files changed, 15 insertions, 15 deletions
diff --git a/python/py-cpuinfo/py-cpuinfo.SlackBuild b/python/py-cpuinfo/py-cpuinfo.SlackBuild index 297deebfe2..fa5dca3ebb 100644 --- a/python/py-cpuinfo/py-cpuinfo.SlackBuild +++ b/python/py-cpuinfo/py-cpuinfo.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for py-cpuinfo -# Copyright 2017 Philip Lacroix <slackph at posteo dot de> +# Copyright 2017-2020 Philip Lacroix <slackph at posteo dot de> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,10 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=py-cpuinfo -VERSION=${VERSION:-20170112} +VERSION=${VERSION:-5.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Source ID (GitHub). -SRCVER=${SRCVER:-c07382c374f4c400f0f2796d81c17e271350e543} - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -48,19 +45,22 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVER -tar xvzf $CWD/$PRGNAM-$SRCVER.tar.gz - -cd $PRGNAM-$SRCVER +rm -rf $PRGNAM-$VERSION +tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz +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 600 -o -perm 444 -o -perm 440 \ - -o -perm 400 \) -exec chmod 644 {} \; + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi + 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 @@ -68,7 +68,7 @@ PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION # Install documentation. mkdir -p $PRGDOC -cp -a ChangeLog LICENSE README.md $PRGDOC/ +cp -a ChangeLog LICENSE README.md example $PRGDOC/ cat $CWD/$PRGNAM.SlackBuild > $PRGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/py-cpuinfo/py-cpuinfo.info b/python/py-cpuinfo/py-cpuinfo.info index 1fc7a96999..b7a244de4c 100644 --- a/python/py-cpuinfo/py-cpuinfo.info +++ b/python/py-cpuinfo/py-cpuinfo.info @@ -1,8 +1,8 @@ PRGNAM="py-cpuinfo" -VERSION="20170112" +VERSION="5.0.0" HOMEPAGE="https://github.com/workhorsy/py-cpuinfo" -DOWNLOAD="https://github.com/workhorsy/py-cpuinfo/archive/c07382c374f4c400f0f2796d81c17e271350e543/py-cpuinfo-c07382c374f4c400f0f2796d81c17e271350e543.tar.gz" -MD5SUM="d57130c9b265843419b3179deea10e9c" +DOWNLOAD="https://github.com/workhorsy/py-cpuinfo/archive/v5.0.0/py-cpuinfo-5.0.0.tar.gz" +MD5SUM="a8651af9aa251f146c73e69ac953746c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |