python/py-cpuinfo: Updated for version 5.0.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Philip Lacroix 2020-02-15 08:09:14 +07:00 committed by Willy Sudiarto Raharjo
parent 51523e5c4b
commit 320dc7d69d
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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=""