# 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.23.3 pkgrel=1 pkgdesc='An easy to use, but flexible, composited Window Manager' arch=(x86_64) url='https://kde.org/plasma-desktop/' license=(LGPL) depends=(kscreenlocker xcb-util-cursor plasma-framework kcmutils kwayland-server breeze pipewire-session-manager libqaccessibilityclient lcms2) makedepends=(extra-cmake-modules qt5-tools kdoctools krunner) optdepends=('maliit-keyboard: virtual keyboard for kwin-wayland') groups=(plasma) source=(https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz{,.sig}) install=$pkgname.install b2sums=('fd84fefafb51e3979a270688ad5b33ed1bb3067a1d2406382b18c1f08cc31c5b5f74725a741b3a569082ff8c9964f254915401e7c7034fae1b550c50659b6235' 'SKIP') validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D' # Jonathan Esk-Riddell '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah 'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin build() { export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto -fPIC" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto -fPIC" # -fPIE, -pie breaks kwin #export CFLAGS="$CFLAGS -fno-PIC -fPIE" #export CXXFLAGS="$CFLAGS -fno-PIC -fPIE" #export LDFLAGS="$LDFLAGS,-pie" cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_LIBEXECDIR=lib \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }