diff --git a/extra/kwin/PKGBUILD b/extra/kwin/PKGBUILD new file mode 100644 index 000000000..cfc28ed34 --- /dev/null +++ b/extra/kwin/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Felix Yan +# Maintainer: Antonio Rojas +# Contributor: Andrea Scarpino + +# ALARM: Kevin Mihelich +# - explicitly link v5/v6 with libatomic + +pkgname=kwin +pkgver=5.21.0 +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 + qt5-script pipewire libqaccessibilityclient lcms2) +makedepends=(extra-cmake-modules qt5-tools kdoctools krunner) +optdepends=('qt5-virtualkeyboard: virtual keyboard support for kwin-wayland') +groups=(plasma) +source=("https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz"{,.sig}) +install=$pkgname.install +sha256sums=('dcf0e4c152707f9134e2165279ae6acdf6e3f7522812f44afb9aa4779899e5a1' + 'SKIP') +validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E' # Jonathan Riddell + '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah + 'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson + '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin + +build() { + [[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(kwin atomic)" >> ${pkgname}-${pkgver}/CMakeLists.txt + cmake -B build -S $pkgname-$pkgver \ + -DCMAKE_INSTALL_LIBEXECDIR=lib \ + -DBUILD_TESTING=OFF + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} diff --git a/extra/kwin/kwin.install b/extra/kwin/kwin.install new file mode 100644 index 000000000..73be0cb68 --- /dev/null +++ b/extra/kwin/kwin.install @@ -0,0 +1,9 @@ +post_install() { +# this is executed by make install, but doesn't work since setcap can only be run as root + setcap CAP_SYS_NICE=+ep /usr/bin/kwin_wayland +} + +post_upgrade() { + post_install +} +