Package Details: layer-shell-qt-git 5.27.80_r94.g3bfed84-1

Git Clone URL: https://aur.archlinux.org/layer-shell-qt-git.git (read-only, click to copy)
Package Base: layer-shell-qt-git
Description: Qt component to allow applications to make use of the Wayland wl-layer-shell protocol
Upstream URL: https://invent.kde.org/plasma/layer-shell-qt
Licenses: LGPL
Groups: plasma-git
Conflicts: layer-shell-qt
Provides: layer-shell-qt
Submitter: IslandC0der
Maintainer: IslandC0der (chaotic-aur)
Last Packager: IslandC0der
Votes: 1
Popularity: 0.000000
First Submitted: 2021-04-20 16:07 (UTC)
Last Updated: 2023-06-10 00:05 (UTC)

Required by (18)

Sources (1)

Latest Comments

madushan1000 commented on 2023-09-26 21:22 (UTC)

@IslandC0der can you add this patch to build the qml module?

diff --git a/PKGBUILD b/PKGBUILD
index 401275d..9b46b7b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx>

 pkgname=layer-shell-qt-git
-pkgver=5.27.80_r94.g3bfed84
+pkgver=5.27.80_r99.g1573a89
 pkgrel=1
 pkgdesc='Qt component to allow applications to make use of the Wayland wl-layer-shell protocol'
 arch=($CARCH)
@@ -12,8 +12,9 @@ makedepends=(git extra-cmake-modules-git wayland-protocols)
 conflicts=(${pkgname%-git})
 provides=(${pkgname%-git})
 groups=(plasma-git)
-source=("git+$url.git")
-sha256sums=('SKIP')
+source=("git+$url.git"
+    "qml.patch")
+sha256sums=('SKIP' 'SKIP')

 pkgver() {
   cd ${pkgname%-git}
@@ -21,6 +22,11 @@ pkgver() {
   echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
 }

+prepare() {
+    cd ${pkgname%-git}
+    patch --forward --strip=1 --input="${srcdir}/qml.patch"
+}
+
 build() {
   cmake -B build -S ${pkgname%-git} \
     -DQT_MAJOR_VERSION=6 \

diff --git a/src/declarative/CMakeLists.txt b/src/declarative/CMakeLists.txt
index f9ea9fe..b26f176 100644
--- a/src/declarative/CMakeLists.txt
+++ b/src/declarative/CMakeLists.txt
@@ -1,9 +1,26 @@
 # SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleix.pol_gonzalez@mercedes-benz.com>
 # SPDX-License-Identifier: BSD-3-Clause

-qt_add_qml_module(LayerShellQtQml
+set(module_name "LayerShellQtQml")
+qt_add_qml_module( ${module_name}
                   URI "org.kde.layershell"
                   VERSION 1.0
                   SOURCES layershellqtplugin.cpp)
-target_link_libraries(LayerShellQtQml PRIVATE Qt::Qml LayerShellQtInterface)

+qt_query_qml_module(${module_name}
+    PLUGIN_TARGET module_plugin_target
+    TARGET_PATH module_target_path
+    QMLDIR module_qmldir
+    TYPEINFO module_typeinfo
+)
+
+set_target_properties(${module_name}
+  PROPERTIES NO_SONAME 1 OUTPUT_NAME "${module_plugin_target}"
+)
+
+target_link_libraries(${module_name} PRIVATE Qt::Qml LayerShellQtInterface)
+
+install(TARGETS ${module_name}
+        LIBRARY DESTINATION ${KDE_INSTALL_QMLDIR}/${module_target_path})
+install(FILES ${module_qmldir} DESTINATION ${KDE_INSTALL_QMLDIR}/${module_target_path})
+install(FILES ${module_typeinfo} DESTINATION ${KDE_INSTALL_QMLDIR}/${module_target_path})

I would try to get it merged upstream, but I don't have time to figure out kde contribution guidelines at the moment. Thank you :)

IslandC0der commented on 2021-04-24 15:10 (UTC)

@desaparecido thank you! :) I was experimenting with that fork and forgot to change it back

desaparecido commented on 2021-04-23 07:39 (UTC)

hi, thanks for this package, only thing, is needed to change "vladz" branch to "plasma" in source that have all commits to build successfully plasma-workspace-git and others packages in plasma git versions.