summaryrefslogtreecommitdiff
path: root/python/python-evdev/python-evdev.SlackBuild
diff options
context:
space:
mode:
authorDugan Chen <thedoogster [at] gmail [dot] com>2018-09-02 00:59:03 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-08 08:37:38 +0700
commit8d08ee6e1986f769413b667fe237bd8b10724eff (patch)
treeb9d724ddd2fffcc37c7ae64d8e4d1fb6e80c60ff /python/python-evdev/python-evdev.SlackBuild
parentdcd937fd24c909af505f8c8975cc31d245bdedc9 (diff)
downloadslackbuilds-8d08ee6e1986f769413b667fe237bd8b10724eff.tar.gz
python/python-evdev: Updated for version 1.1.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/python-evdev/python-evdev.SlackBuild')
-rw-r--r--python/python-evdev/python-evdev.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/python-evdev/python-evdev.SlackBuild b/python/python-evdev/python-evdev.SlackBuild
index a4081dfcbe..9b567b0a41 100644
--- a/python/python-evdev/python-evdev.SlackBuild
+++ b/python/python-evdev/python-evdev.SlackBuild
@@ -22,9 +22,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+PRGNAM=python-evdev
SRCNAM=evdev
-PRGNAM=python-$SRCNAM
-VERSION=${VERSION:-1.0.0}
+VERSION=${VERSION:-1.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +60,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
@@ -75,7 +75,7 @@ find -L . -perm 660 -exec chmod 644 {} \;
python setup.py install --root=$PKG
-if hash python3 ; then
+if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi