# 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.1 pkgrel=1 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}) install=$pkgname.install sha256sums=('3e1d678959b1eb1f4ec4d898629468b9860c1fcd8471b085b779553a9495e4b0' 'SKIP') b2sums=('746a0e3f4e2a0b02e5acc3e85ac5c795d7f8df4f364a53437c45745520cc842c112d028bf336f7201059a6003988c23c3cd80beddcdddedc94fd15217693e6a9' 'SKIP') validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D' # Jonathan Esk-Riddell '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah 'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin 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 }