From f9e011539f74d3f396ed12c15a737a59f8a79fb6 Mon Sep 17 00:00:00 2001 From: taj-ny <79316397+taj-ny@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:09:33 +0100 Subject: [PATCH 1/2] cmake: add cpack support --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b86759d43..88e39f817 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,13 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +set(CPACK_PACKAGE_NAME "kwin-better-blur") +set(CPACK_PACKAGING_INSTALL_PREFIX "/usr") +set(CPACK_PACKAGE_FILE_NAME "kwin-better-blur") +set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}") +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Fork of the KWin Blur effect for KDE Plasma 6 with additional features (including force blur) and bug fixes") +include(CPack) + if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose Release or Debug" FORCE) endif() From 2f54614e6f423d0a77679987a61eaf288e994d28 Mon Sep 17 00:00:00 2001 From: taj-ny <79316397+taj-ny@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:19:47 +0100 Subject: [PATCH 2/2] readme: add build instructions for fedora kinoite --- README.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bad8506d6..8f8b69c08 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,9 @@ Fixes for blur-related Plasma bugs that haven't been patched yet. # Building from source +> [!NOTE] +> On Fedora Kinoite and other distributions based on it, the effect must be built in a container. + ### Dependencies - CMake - Extra CMake Modules @@ -74,7 +77,7 @@ Fixes for blur-related Plasma bugs that haven't been patched yet.
- Fedora + Fedora 40, 41
``` @@ -98,10 +101,29 @@ cd kwin-effects-forceblur mkdir build cd build cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -make -sudo make install +make -j ``` +### Installation +
+ Fedora Kinoite +
+ + ```sh + cpack -V -G RPM + exit # exit the container + sudo rpm-ostree install kwin-effects-forceblur/build/kwin-better-blur.rpm + ``` +
+
+ Other distributions +
+ + ```sh + sudo make install + ``` +
+ Remove the *build* directory when rebuilding the effect. # Usage