From 07164cd9ceb04d74ba5338431bbe8f927622430c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 3 Aug 2023 13:58:39 +0700 Subject: [PATCH 1/4] New package: python3-pywayland-0.4.16 Close: #45430 --- srcpkgs/python3-pywayland/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/python3-pywayland/template diff --git a/srcpkgs/python3-pywayland/template b/srcpkgs/python3-pywayland/template new file mode 100644 index 0000000000000..103360eaf37ff --- /dev/null +++ b/srcpkgs/python3-pywayland/template @@ -0,0 +1,16 @@ +# Template file for 'python3-pywayland' +pkgname=python3-pywayland +version=0.4.16 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools wayland-protocols pkg-config + python3-wheel python3-cffi wayland-devel" +makedepends="python3-devel wayland-devel" +depends="python3-cffi" +short_desc="Python bindings for the libwayland library" +maintainer="Đoàn Trần Công Danh " +license="Apache-2.0" +homepage="https://github.com/flacjacket/pywayland" +distfiles="${PYPI_SITE}/p/pywayland/pywayland-${version}.tar.gz" +checksum=aaa70c870b0ab365215f8e71505f73683c4ed15b1f3638433b1dc7344fe5b5dd +make_check=no From fa2f7fda01c4c5ffd42b7ed14d4f6027ece8ce0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 3 Aug 2023 14:09:35 +0700 Subject: [PATCH 2/4] New package: python3-xkbcommon-0.8 Close #45431 --- srcpkgs/python3-xkbcommon/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-xkbcommon/template diff --git a/srcpkgs/python3-xkbcommon/template b/srcpkgs/python3-xkbcommon/template new file mode 100644 index 0000000000000..fa0f294c72fed --- /dev/null +++ b/srcpkgs/python3-xkbcommon/template @@ -0,0 +1,18 @@ +# Template file for 'python3-xkbcommon' +pkgname=python3-xkbcommon +version=0.8 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-cffi python3-setuptools python3-wheel" +makedepends="libxkbcommon-devel python3-devel" +depends="python3 python3-cffi" +short_desc="Python bindings for libxkbcommon using cffi" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://github.com/sde1000/python-xkbcommon" +distfiles="${PYPI_SITE}/x/xkbcommon/xkbcommon-${version}.tar.gz" +checksum=5be5973bf5b7525687a4df6c84789b421590d7f7cf92ae56f2aab177b795d516 + +post_install() { + vlicense LICENSE +} From aa15b2ec6bb01a46da19ea8f7370900a8184e832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 3 Aug 2023 14:11:37 +0700 Subject: [PATCH 3/4] New package: python3-pywlroots-0.15-0.15.24 Close #45429 --- srcpkgs/python3-pywlroots-0.15/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/python3-pywlroots-0.15/template diff --git a/srcpkgs/python3-pywlroots-0.15/template b/srcpkgs/python3-pywlroots-0.15/template new file mode 100644 index 0000000000000..5cd6b160045f3 --- /dev/null +++ b/srcpkgs/python3-pywlroots-0.15/template @@ -0,0 +1,15 @@ +# Template file for 'python3-pywlroots-0.15' +pkgname=python3-pywlroots-0.15 +version=0.15.24 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-cffi python3-pywayland python3-xkbcommon + python3-wheel" +makedepends="python3-devel wlroots${pkgname##*-}-devel" +depends="python3-pywayland python3-xkbcommon python3-cffi" +short_desc="Python binding to the wlroots ${pkgname##*-} using cffi" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://github.com/flacjacket/pywlroots" +distfiles="${PYPI_SITE}/p/pywlroots/pywlroots-${version}.tar.gz" +checksum=4ef621c6201b2be9a970413dcbbf561fde9dcde0e7bc8d313da53149842ac871 From e417de51066ad2556298f906ff247b99ac5a6fa1 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 4/4] 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 0000000000000..37d4345d5336d --- /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 3f16eada0cda7..7b466061079e4 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 + } +}