diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2018-06-22 22:40:47 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-06-23 08:44:02 +0700 |
commit | 6c78d09aa05e2a62aafe75d2150e83c753292bf2 (patch) | |
tree | fa0f3abfd13d84ac26cfae18cacdc7172f93917a /python/pyudev/pyudev.SlackBuild | |
parent | 0f9b333efac6be4f710fa83bfc2a74e4b34a7a5a (diff) |
python/pyudev: Updated for version 0.21.0 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/pyudev/pyudev.SlackBuild')
-rw-r--r-- | python/pyudev/pyudev.SlackBuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/python/pyudev/pyudev.SlackBuild b/python/pyudev/pyudev.SlackBuild index d7c0bafeb9f9c..46a7d008ca132 100644 --- a/python/pyudev/pyudev.SlackBuild +++ b/python/pyudev/pyudev.SlackBuild @@ -1,7 +1,8 @@ #!/bin/sh # Slackware build script for pyudev -# Copyright 2012 Jon Ware <jon@waremail.net> +# Copyright 2012 Jon Ware <jon@waremail.net> +# Copyright 2018 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pyudev -VERSION=${VERSION:-0.16.1} +VERSION=${VERSION:-0.21.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -39,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -70,6 +71,11 @@ find -L . \ python setup.py install --root=$PKG +# Python 3 support. +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION install -m 0644 *.txt *.rst COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |