python/pyudev: Updated for version 0.21.0 + new maintainer.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Isaac Yu 2018-06-22 22:40:47 +01:00 committed by Willy Sudiarto Raharjo
parent 0f9b333efa
commit 6c78d09aa0
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 20 additions and 12 deletions

View file

@ -5,6 +5,8 @@ Almost the complete libudev functionality is exposed. You can:
- Enumerate devices, filtered by specific criteria (pyudev.Context)
- Query device information, properties and attributes,
- Monitor devices, both synchronously and asynchronously with background
threads, or within the event loops of Qt (pyudev.pyqt4, pyudev.pyside),
- Monitor devices, both synchronously and asynchronously with background
threads, or within the event loops of Qt (pyudev.pyqt4, pyudev.pyside),
glib (pyudev.glib) or the optional dependency wxPython (pyudev.wx).
python3 is an optional dependency (autodetected).

View file

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

View file

@ -1,10 +1,10 @@
PRGNAM="pyudev"
VERSION="0.16.1"
VERSION="0.21.0"
HOMEPAGE="http://pyudev.readthedocs.org"
DOWNLOAD="https://pypi.python.org/packages/source/p/pyudev/pyudev-0.16.1.tar.gz"
MD5SUM="4034de584b6d9efcbfc590a047c63285"
DOWNLOAD="https://pypi.python.org/packages/source/p/pyudev/pyudev-0.21.0.tar.gz"
MD5SUM="cf4d9db7d772622144ca1be6b5d9353b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Jon Ware"
EMAIL="jon@waremail.net"
MAINTAINER="Isaac Yu"
EMAIL="isaacyu1@isaacyu1.com"