diff options
author | orbea <orbea@riseup.net> | 2020-03-12 06:29:22 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-03-14 08:46:17 +0700 |
commit | 5147dd00814c41a66c6191984a5bfbdcf2dc3a30 (patch) | |
tree | 11c71437bb154fa86f2d66f2083ae03cdc19d706 /python/pyewmh/pyewmh.SlackBuild | |
parent | 45a7a5215837d0967e290a1c230776666d32bac8 (diff) | |
download | slackbuilds-5147dd00814c41a66c6191984a5bfbdcf2dc3a30.tar.gz |
python/pyewmh: Remove python2 support.
Signed-off-by: orbea <orbea@riseup.net>
Diffstat (limited to 'python/pyewmh/pyewmh.SlackBuild')
-rw-r--r-- | python/pyewmh/pyewmh.SlackBuild | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/python/pyewmh/pyewmh.SlackBuild b/python/pyewmh/pyewmh.SlackBuild index 10c93a87cd..a2885d27e6 100644 --- a/python/pyewmh/pyewmh.SlackBuild +++ b/python/pyewmh/pyewmh.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pyewmh -# Copyright 2016-2018 Hunter Sezen California, USA +# Copyright 2016-2018, 2020 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=pyewmh VERSION=${VERSION:-0.1.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -55,15 +55,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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 +python3 setup.py install --root=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a -- *.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |