# 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.10 _dirver=$(echo $pkgver | cut -d. -f1-3) 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-framework5 kcmutils5 breeze pipewire-session-manager libqaccessibilityclient lcms2 libxcvt) makedepends=(extra-cmake-modules qt5-tools kdoctools5 krunner5 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}) install=$pkgname.install sha256sums=('b85a25125900b62cb5a3c609961088c45a58f55004317e4f5e8ba2039ae6dac6' 'SKIP') b2sums=('13da6f83e55236d7060c3f1fcf4f8e2ff5ca0351ae8c5fe6f313a4a4872430a5c049c582993d8c7817b493477f918060220b6b2ccda2baea0d44eb34767e2fc9' '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 }