From 86b457e205ba64814e70271c698f4801f3f855f1 Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Tue, 29 Nov 2022 12:42:09 -0300 Subject: [PATCH 1/7] Added python-pywayland as a package --- srcpkgs/python-pywayland/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/python-pywayland/template diff --git a/srcpkgs/python-pywayland/template b/srcpkgs/python-pywayland/template new file mode 100644 index 000000000000..4be85ca1bb9a --- /dev/null +++ b/srcpkgs/python-pywayland/template @@ -0,0 +1,24 @@ +# Template file for 'python-pywayland' +pkgname=python-pywayland +version=0.4.14 +revision=1 +hostmakedepends="pkg-config" +makedepends="python3-devel python3-cffi wayland-devel python3-setuptools" +depends="python3 python3-cffi wayland" +build_style=python3-module +short_desc="Python bindings for the libwayland library" +maintainer="Bruno Henrique " +license="Apache-2.0" +homepage="https://github.com/flacjacket/pywayland" +distfiles="https://github.com/flacjacket/pywayland/archive/refs/tags/v${version}.tar.gz" +checksum="3d5ce72781e57ece36cdf6a012122bddc5153b4de7be41224d04279a2f28aa00" + +configure() { + python3 -m pywayland.scanner + python3 pywayland/ffi_build.py +} + +install() { + mkdir -p ${PKGDESTDIR}/usr/lib + python3 setup.py install +} From b2c788bf745e864bb302ed1be320bf104fc0dba2 Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Tue, 29 Nov 2022 12:55:36 -0300 Subject: [PATCH 2/7] Added the package python-xkbcommon --- srcpkgs/python-xkbcommon/template | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/python-xkbcommon/template diff --git a/srcpkgs/python-xkbcommon/template b/srcpkgs/python-xkbcommon/template new file mode 100644 index 000000000000..f5c2e6ed9b72 --- /dev/null +++ b/srcpkgs/python-xkbcommon/template @@ -0,0 +1,13 @@ +# Template file for 'python-xkbcommon' +pkgname=python-xkbcommon +version=0.4 +revision=1 +makedepends="python3-devel python3-cffi libxkbcommon-devel python3-setuptools" +depends="python3 python3-cffi libxkbcommon" +build_style=python3-module +short_desc="Python bindings for libxkbcommon using cffi" +maintainer="Bruno Henrique " +license="MIT" +homepage="https://github.com/sde1000/python-xkbcommon" +distfiles="https://github.com/sde1000/python-xkbcommon/archive/refs/tags/v${version}.tar.gz" +checksum="a6df3745dbce77dde020e1125e4d6b66ce0db3eb8b704eeb8cf1d3a63003fddb" From 2db8ba5627434b0b35af4330683c3db16f00cdc0 Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Tue, 29 Nov 2022 13:23:13 -0300 Subject: [PATCH 3/7] Added pywlroots package --- srcpkgs/pywlroots/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/pywlroots/template diff --git a/srcpkgs/pywlroots/template b/srcpkgs/pywlroots/template new file mode 100644 index 000000000000..c465ef7506ce --- /dev/null +++ b/srcpkgs/pywlroots/template @@ -0,0 +1,17 @@ +# Template file for 'pywlroots' +pkgname=pywlroots +version=0.15.24 +revision=1 +makedepends="wlroots-devel python3-devel python3-cffi python-pywayland python-xkbcommon python3-setuptools" +depends="wlroots python3 python3-cffi python-pywayland python-xkbcommon" +build_style=python3-module +short_desc="Python binding to the wlroots library using cffi" +maintainer="Bruno Henrique " +license="NCSA" +homepage="https://github.com/flacjacket/pywlroots" +distfiles="https://github.com/flacjacket/pywlroots/archive/refs/tags/v${version}.tar.gz" +checksum="306a3f8e1e686ddf1da439934968e40f4161ec7dd9f8f7887fa851b19b652a23" + +configure() { + python3 wlroots/ffi_build.py +} From f5f9e091e09dd66c4de642b7f66f0827b3cf53fa Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Tue, 29 Nov 2022 13:31:36 -0300 Subject: [PATCH 4/7] Added pywlroots as a dependency on qtile --- srcpkgs/qtile/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/qtile/template b/srcpkgs/qtile/template index 3f16eada0cda..2d8b35c58cd9 100644 --- a/srcpkgs/qtile/template +++ b/srcpkgs/qtile/template @@ -1,11 +1,11 @@ # 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" -depends="python3-cairocffi python3-xcffib pango gdk-pixbuf" +depends="python3-cairocffi python3-xcffib pango gdk-pixbuf pywlroots" short_desc="Full-featured tiling window manager written and configured in Python" maintainer="Kai Stian Olstad " license="MIT" From fb531ee8801b07447c2f37509f124a8434d7eb31 Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Tue, 29 Nov 2022 15:18:38 -0300 Subject: [PATCH 5/7] qtile: Informing of a optional dependency for wayland --- srcpkgs/qtile/INSTALL.msg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srcpkgs/qtile/INSTALL.msg b/srcpkgs/qtile/INSTALL.msg index 95c75c2e6561..6b1fba73ba1d 100644 --- a/srcpkgs/qtile/INSTALL.msg +++ b/srcpkgs/qtile/INSTALL.msg @@ -7,3 +7,5 @@ - "KeyChord"'s signature has changed. "mode" is now a boolean to indicate whether the mode should persist. The "name" parameter should be used to name the chord (e.g. for the ``Chord`` widget). + +- Wayland backend: To enable wayland backend, please install the "pywlroots" package From 55323518ff0718f62616d22c21bd0af71baa11fe Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Tue, 29 Nov 2022 15:55:00 -0300 Subject: [PATCH 6/7] qtile: Removing 'pywlroots' as a dependency --- srcpkgs/qtile/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/qtile/template b/srcpkgs/qtile/template index 2d8b35c58cd9..335eec7b1409 100644 --- a/srcpkgs/qtile/template +++ b/srcpkgs/qtile/template @@ -5,7 +5,7 @@ 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" -depends="python3-cairocffi python3-xcffib pango gdk-pixbuf pywlroots" +depends="python3-cairocffi python3-xcffib pango gdk-pixbuf" short_desc="Full-featured tiling window manager written and configured in Python" maintainer="Kai Stian Olstad " license="MIT" From 2b8e75971a69343bd2f0eb3dc804135c579f3b5b Mon Sep 17 00:00:00 2001 From: Bruno Henrique <65919961+brunothedev@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:28:30 -0300 Subject: [PATCH 7/7] Changing package name: From python-xkbcommon to python3-xkbcommon Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> --- srcpkgs/python-xkbcommon/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/python-xkbcommon/template b/srcpkgs/python-xkbcommon/template index f5c2e6ed9b72..184a11420346 100644 --- a/srcpkgs/python-xkbcommon/template +++ b/srcpkgs/python-xkbcommon/template @@ -1,5 +1,5 @@ # Template file for 'python-xkbcommon' -pkgname=python-xkbcommon +pkgname=python3-xkbcommon version=0.4 revision=1 makedepends="python3-devel python3-cffi libxkbcommon-devel python3-setuptools"