kde-plasma-6/kwin/Pkgfile

33 lines
1.1 KiB
Plaintext

# Description: Easy to use, but flexible, X Window Manager and Wayland Compositor
# URL: https://kde.org/plasma-desktop/
# Maintainer: CRUX KDE Ports, kde-ports at crux dot nu
# Depends on: kdeclarative kdecoration kglobalacceld knewstuff kscreenlocker kwayland lcms2 libdisplay-info libinput pipewire qt6-multimedia qt6-sensors xorg-xwayland
name=kwin
version=6.0.3.1
release=2
source=(https://download.kde.org/stable/plasma/${version::5}/$name-$version.tar.xz
fix-screencast-pipewire.patch)
build() {
# https://bugs.kde.org/show_bug.cgi?id=483137
patch -Np1 -d $name-$version -i $SRC/fix-screencast-pipewire.patch
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_INSTALL_LIBEXECDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D BUILD_TESTING=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/locale
}
# vim: set ts=4 et: