Name kwayland5
Description Qt-style Client and Server library wrapper for the Wayland libraries
Version 5.116.0-2
Package Base kwayland5
Homepage https://www.kde.org
Maintainers ['Antonio Rojas <arojas@archlinux.org>', 'Felix Yan <felixonmars@archlinux.org>']
Contributors ['Andrea Scarpino <andrea@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/kwayland5
Sources ['https://download.kde.org/stable/frameworks/5.116/kwayland-5.116.0.tar.xz', 'https://download.kde.org/stable/frameworks/5.116/kwayland-5.116.0.tar.xz.sig', 'https://invent.kde.org/plasma/kwayland/-/commit/0954a179.patch']
Dependencies ['qt5-wayland']
Optional-Dependencies []
Build-Dependencies ['extra-cmake-modules', 'wayland-protocols', 'plasma-wayland-protocols']
Provides []
Builddate 02-11-2025 12:31:17
Architecture x86_64
Distro-Version
Licenses ['LGPL']
Hash df6f84f9511b78eb0b40f03404f47d2648bcbb302128963dac1da211c36d97bc
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

_name=kwayland
pkgname=${_name}5
pkgver=5.116.0
pkgrel=2
pkgdesc='Qt-style Client and Server library wrapper for the Wayland libraries'
arch=(x86_64)
url='https://www.kde.org'
license=(LGPL)
depends=(qt5-wayland)
makedepends=(extra-cmake-modules wayland-protocols plasma-wayland-protocols)
conflicts=("$_name<5.111")
replaces=("$_name<5.111")
groups=(kf5)
source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$_name-$pkgver.tar.xz{,.sig}
        https://invent.kde.org/plasma/kwayland/-/commit/0954a179.patch)
sha256sums=('88b5970c2d6f6d5f46e6ffac66233bf23f2fcf016dea39fffbd9f47b1fc0aed8'
            'SKIP'
            'a93b5cd3dd212b7c8de497516446212c55efd143a14566875594be510a2cd5bc')
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>

prepare() {
  patch -d $_name-$pkgver -p1 < 0954a179.patch # Fix build
}

build() {
  cmake -B build -S $_name-$pkgver \
    -DCMAKE_INSTALL_LIBEXECDIR=lib \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}