aboutsummaryrefslogtreecommitdiff
path: root/python/pyudev
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2023-02-19 01:02:50 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-21 08:51:09 +0700
commit2139c03aad5c2294bf839e917df7800fef871e56 (patch)
tree55fd530cc89ad1fb1526f012a7fee9d014d57aca /python/pyudev
parent7dbdae225ac37d7dd3fe336f900a30c6f3a13242 (diff)
python/pyudev: Update for 0.24.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pyudev')
-rw-r--r--python/pyudev/pyudev.SlackBuild20
-rw-r--r--python/pyudev/pyudev.info8
2 files changed, 9 insertions, 19 deletions
diff --git a/python/pyudev/pyudev.SlackBuild b/python/pyudev/pyudev.SlackBuild
index 156dfdff05f5b..b56c921c62b36 100644
--- a/python/pyudev/pyudev.SlackBuild
+++ b/python/pyudev/pyudev.SlackBuild
@@ -1,8 +1,9 @@
#!/bin/bash
+
# Slackware build script for pyudev
# Copyright 2012 Jon Ware <jon@waremail.net>
-# Copyright 2018-2020 Isaac Yu <isaacyu1@isaacyu1.com>
+# Copyright 2018-2023 Isaac Yu <isaacyu1@isaacyu1.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pyudev
-VERSION=${VERSION:-0.22.0}
+VERSION=${VERSION:-0.24.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -79,18 +77,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Python 2 support (Default)
-if $(python -c 'import six' 2>/dev/null); then
- python setup.py install --root=$PKG
-fi
-
-# Python 3 support
-if $(python3 -c 'import six' 2>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+python3 setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-install -m 0644 *.txt *.rst COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES.rst COPYING README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/pyudev/pyudev.info b/python/pyudev/pyudev.info
index e5c1c765d5999..c95dfc659f9f8 100644
--- a/python/pyudev/pyudev.info
+++ b/python/pyudev/pyudev.info
@@ -1,8 +1,8 @@
PRGNAM="pyudev"
-VERSION="0.22.0"
-HOMEPAGE="http://pyudev.readthedocs.org"
-DOWNLOAD="https://files.pythonhosted.org/packages/72/c8/4660d815a79b1d42c409012aaa10ebd6b07a47529b4cb6880f27a24bd646/pyudev-0.22.0.tar.gz"
-MD5SUM="377eda61186c91e9440f01d76dbb4206"
+VERSION="0.24.0"
+HOMEPAGE="https://github.com/pyudev/pyudev"
+DOWNLOAD="https://github.com/pyudev/pyudev/archive/v0.24.0/pyudev-0.24.0.tar.gz"
+MD5SUM="6ed29ce8e9a3a1e28464125bb9bdbb08"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""