aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2022-09-22 22:32:21 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-24 07:34:14 +0700
commit1805780f0a523190a2efb76c604c1505cd383951 (patch)
treee4d4b3019dd545fa4a4b7cd1a0929094baec4462
parent56a4199cf734d1cca4d116766f25a098e499a6bd (diff)
desktop/qtile: Update for 0.22.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--desktop/qtile/README3
-rw-r--r--desktop/qtile/qtile.SlackBuild14
-rw-r--r--desktop/qtile/qtile.info6
3 files changed, 14 insertions, 9 deletions
diff --git a/desktop/qtile/README b/desktop/qtile/README
index 5905765087bf3..58e7892e298f5 100644
--- a/desktop/qtile/README
+++ b/desktop/qtile/README
@@ -11,4 +11,5 @@ It sends notifications through dbus - please additionally install a
notification daemon such as dunst for displaying notifications on qtile.
pywlroots (another optional dependency) provides experimental Wayland
-support.
+support. If pywlroots is installed, then this SlackBuild will also
+install a Wayland .desktop session file.
diff --git a/desktop/qtile/qtile.SlackBuild b/desktop/qtile/qtile.SlackBuild
index a7d0c1da8e280..1914fa644e115 100644
--- a/desktop/qtile/qtile.SlackBuild
+++ b/desktop/qtile/qtile.SlackBuild
@@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qtile
-VERSION=${VERSION:-0.21.0}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-0.22.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -89,11 +89,15 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/etc/X11/xinit
install -m 0755 $CWD/xinitrc.$PRGNAM $PKG/etc/X11/xinit/xinitrc.$PRGNAM
-# Install desktop file
+# Install Xsession file
mkdir -p $PKG/usr/share/xsessions
install -D -m644 resources/$PRGNAM.desktop $PKG/usr/share/xsessions/$PRGNAM.desktop
-mkdir -p $PKG/usr/share/wayland-sessions
-install -D -m644 resources/$PRGNAM-wayland.desktop $PKG/usr/share/wayland-sessions/$PRGNAM-wayland.desktop
+
+# If pywlroots is installed, install Wayland session file
+if $(python3 -c 'import pkgutil; exit(not pkgutil.find_loader("wlroots"))'); then
+ mkdir -p $PKG/usr/share/wayland-sessions
+ install -D -m644 resources/$PRGNAM-wayland.desktop $PKG/usr/share/wayland-sessions/$PRGNAM-wayland.desktop
+fi
# example for default config file maybe installed ~/$USER/.config/qtile
CONFIG="libqtile/resources/default_config.py"
diff --git a/desktop/qtile/qtile.info b/desktop/qtile/qtile.info
index 770c3fd909939..ce20fff271a6c 100644
--- a/desktop/qtile/qtile.info
+++ b/desktop/qtile/qtile.info
@@ -1,8 +1,8 @@
PRGNAM="qtile"
-VERSION="0.21.0"
+VERSION="0.22.1"
HOMEPAGE="http://qtile.org"
-DOWNLOAD="https://files.pythonhosted.org/packages/a4/7e/4f3921eda7e3912aa7487b0455e1993a638d99cf6075205de3cf8a13f291/qtile-0.21.0.tar.gz"
-MD5SUM="91a9691e69459bc690c335a2f4b4e18a"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/q/qtile/qtile-0.22.1.tar.gz"
+MD5SUM="504e17bca60ef78bdbdb0b706809dd8b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-xcffib cairocffi"