# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=kdecoration pkgver=${_plasmaver} pkgrel=1 pkgdesc='Plugin based library to create window decorations.' arch=('x86_64') url='https://invent.kde.org/plasma/kdecoration' license=('LGPL') depends=('qt6-base' 'ki18n6' 'kcoreaddons6') makedepends=('extra-cmake-modules' 'kdoctools6' 'qt6-tools') conflicts=('kdecoration6') replaces=('kdecoration6') groups=('kdeplasma6') source=("https://download.kde.org/stable/plasma/${pkgver}/${pkgname}-${pkgver}.tar.xz") md5sums=(`grep ${pkgname}-${_plasmaver}.tar.xz ../kf6.md5 | cut -d" " -f1`) build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }