# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=spectacle pkgver=${_kdever} pkgrel=2 pkgdesc="The new KDE Screenshot Utility" url="https://kde.org/applications/utilities/org.kde.spectacle" arch=('x86_64') license=('GPL' 'LGPL' 'FDL') depends=('kcoreaddons6' 'kwidgetsaddons6' 'kdbusaddons6' 'knotifications6' 'kconfig6' 'ki18n6' 'kio6' 'kwindowsystem6' 'kglobalaccel6' 'kxmlgui6' 'kguiaddons6' 'kirigami6' 'purpose6' 'plasma-wayland-protocols' 'kpipewire' 'layer-shell-qt' 'prison6' 'kstatusnotifieritem' 'qt6-tools' 'xcb-util-cursor' 'opencv') makedepends=('extra-cmake-modules6' 'kdoctools6') conflicts=('spectacle6') replaces=('spectacle6') groups=('kde' 'kde-graphics' 'kde-uninstall') source=("$_mirror/${pkgname}-${_kdever}.tar.xz") md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1`) prepare() { cd ${pkgname}-${pkgver} #patch -p1 -i ${srcdir}/491f561dd488f2eb5d932b2f32f41599c20aabc8.diff #sed -e 's|Exec=qdbus|Exec=qdbus-qt5|g' -i desktop/org.kde.spectacle.desktop } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF \ -DQT_MAJOR_VERSION=6 cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }