summaryrefslogtreecommitdiffstats
path: root/desktop/qtile/qtile.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/qtile/qtile.SlackBuild')
-rw-r--r--desktop/qtile/qtile.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/desktop/qtile/qtile.SlackBuild b/desktop/qtile/qtile.SlackBuild
index 4d5e4f27c1..51e7162010 100644
--- a/desktop/qtile/qtile.SlackBuild
+++ b/desktop/qtile/qtile.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for qtile
# Copyright 2014-2019 Dimitris Zlatanidis Orestiada, Greece
-# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com>
+# Copyright 2022-2023 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qtile
-VERSION=${VERSION:-0.21.0}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-0.22.1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,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
@@ -89,10 +86,16 @@ 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
+# 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"