From 1b672e929499d218765213815ca4fda8e3d35668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 7 Aug 2023 14:33:53 +0700 Subject: [PATCH] qtile: add subpkg for wayland dependencies --- srcpkgs/qtile-wayland | 1 + srcpkgs/qtile/template | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 120000 srcpkgs/qtile-wayland diff --git a/srcpkgs/qtile-wayland b/srcpkgs/qtile-wayland new file mode 120000 index 00000000000..37d4345d533 --- /dev/null +++ b/srcpkgs/qtile-wayland @@ -0,0 +1 @@ +qtile \ No newline at end of file diff --git a/srcpkgs/qtile/template b/srcpkgs/qtile/template index 3f16eada0cd..7b466061079 100644 --- a/srcpkgs/qtile/template +++ b/srcpkgs/qtile/template @@ -1,10 +1,12 @@ # Template file for 'qtile' pkgname=qtile version=0.22.0 -revision=2 +revision=3 build_style=python3-pep517 -hostmakedepends="python3-setuptools_scm python3-cairocffi python3-xcffib python3-wheel pkg-config" -makedepends="python3-devel libffi-devel pulseaudio-devel" +_wlroots=0.15 +hostmakedepends="python3-setuptools_scm python3-cairocffi python3-xcffib python3-wheel + pkg-config python3-pywlroots-${_wlroots} python3-pywayland python3-xkbcommon" +makedepends="python3-devel libffi-devel pulseaudio-devel wlroots${_wlroots}-devel" depends="python3-cairocffi python3-xcffib pango gdk-pixbuf" short_desc="Full-featured tiling window manager written and configured in Python" maintainer="Kai Stian Olstad " @@ -18,3 +20,11 @@ post_install() { vinstall resources/qtile.desktop 644 usr/share/xsessions vlicense LICENSE } + +qtile-wayland_package() { + depends="${sourcepkg}>=${version}_${revision} + python3-pywlroots-${_wlroots} python3-pywayland python3-xkbcommon" + pkg_install() { + vmove ${py3_sitelib}/libqtile/backend/wayland + } +}