# Maintainer: jc_gargma # Maintainer (Arch): Felix Yan # Maintainer (Arch): Antonio Rojas # Contributor (Arch): Andrea Scarpino # # I maintain this because: # Arch version lacks additional optimization and hardening flags pkgname=kwin pkgver=5.27.5 _dirver=$(echo $pkgver | cut -d. -f1-3) pkgrel=3 pkgdesc='An easy to use, but flexible, composited Window Manager' arch=(x86_64) url='https://kde.org/plasma-desktop/' license=(LGPL) options=(lto) depends=(kscreenlocker xcb-util-cursor plasma-framework kcmutils breeze pipewire-session-manager libqaccessibilityclient lcms2 libxcvt) makedepends=(extra-cmake-modules qt5-tools kdoctools krunner wayland-protocols plasma-wayland-protocols python) optdepends=('maliit-keyboard: virtual keyboard for kwin-wayland') replaces=(kwayland-server) groups=(plasma) source=(https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz{,.sig} kwin-5.27.5-hotfix.patch::https://invent.kde.org/plasma/kwin/-/commit/2237391e.patch) install=$pkgname.install sha256sums=('bb1226b15919681ea5f1de58b24ea4b568ea3f2b5452411f76daa80eb30c20ea' 'SKIP' 'ab43b696a25ab0f791bfe9889170027f753a3aaa1ecfeed65440497e944cf5e1') b2sums=('267cd1515f2667a4b96f0ffccbced0885c602d4a5227127ba5c9a23ccd9483d5f613fbc40d39e58ca16c42103f0caf09d39b4e5387d2673bd22393519e142e8f' 'SKIP' '301b2db3db66ded11986583810d8283bf30ed7f6b848db0232e7c91b1c7cb660eacc8f631ff31ed41df826be7d48443235dba7a125b955af968e872a7e903e32') validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D' # Jonathan Esk-Riddell '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah 'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin prepare() { patch -d $pkgname-$pkgver -p1 < kwin-5.27.5-hotfix.patch # Fix scaling of XWayland apps } build() { # Fails to build with -fPIE export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIC" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -fPIC" cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_LIBEXECDIR=lib \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }