# 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.26.2.1 pkgrel=2 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/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig} kwin-5.26.2.1-hotfix.patch::https://invent.kde.org/plasma/kwin/-/commit/2339f7bf.patch) install=$pkgname.install sha256sums=('7c9e921226f85c8f8e835b8bf63ae67da800d6921ba148618e570bf4825f3364' 'SKIP' '12ed726350260507e5305427d967519da56c37e59004139f9ee5f8a9a994f7d6') b2sums=('cf627cc211a306b73b306df6dd6ea391b0fe9bfdbf99dec556c1624b2b0e4a70b7ebf455f92b8584a0b7d2e2bd71bc541913c5fbc3acce71d9ec0f55d218995a' 'SKIP' '43d7394a5770d73027408578fc560bfef56fa66dbb80dd63d469f7ff73ab6eba6087b6e10b2557990eb181a024713fd7010265f77c74adec7d64d01b82eb2c2b') validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D' # Jonathan Esk-Riddell '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah 'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin options=(debug) prepare() { patch -d $pkgname-$pkgver -p1 < kwin-5.26.2.1-hotfix.patch # https://bugs.kde.org/show_bug.cgi?id=461032 } 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 }