summaryrefslogtreecommitdiff
path: root/python/python-evdev/python-evdev.SlackBuild
diff options
context:
space:
mode:
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