Skip to content

Commit

Permalink
Merge pull request #132 from taj-ny/fedora-kinoite
Browse files Browse the repository at this point in the history
readme: add build instructions for fedora kinoite
  • Loading branch information
taj-ny authored Dec 4, 2024
2 parents fb56661 + 2f54614 commit f5cdf40
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Fixes for blur-related Plasma bugs that haven't been patched yet.
</details>

# 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
Expand Down Expand Up @@ -74,7 +77,7 @@ Fixes for blur-related Plasma bugs that haven't been patched yet.
</details>

<details>
<summary>Fedora</summary>
<summary>Fedora 40, 41</summary>
<br>

```
Expand All @@ -98,10 +101,29 @@ cd kwin-effects-forceblur
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
make -j
```

### Installation
<details>
<summary>Fedora Kinoite</summary>
<br>

```sh
cpack -V -G RPM
exit # exit the container
sudo rpm-ostree install kwin-effects-forceblur/build/kwin-better-blur.rpm
```
</details>
<details>
<summary>Other distributions</summary>
<br>

```sh
sudo make install
```
</details>

Remove the *build* directory when rebuilding the effect.

# Usage
Expand Down

0 comments on commit f5cdf40

Please sign in to comment.