mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
python/pyudev: Updated for version 0.21.0 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
0f9b333efa
commit
6c78d09aa0
3 changed files with 20 additions and 12 deletions
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue