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() 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