# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=discover arch=('x86_64') pkgver=${_plasmaver} pkgrel=1 pkgdesc="An Application Installer for the 22nd Century" url="https://userbase.kde.org/Discover" license=('GPL' 'LGPL' 'FDL') depends=('kcoreaddons6' 'kconfig6' 'kcrash6' 'kdbusaddons6' 'ki18n6' 'karchive6' 'kxmlgui6' 'kio6' 'kdeclarative6' 'kcmutils6' 'kidletime6' 'knewstuff6' 'knotifications6' 'purpose6' 'kauth6' 'kstatusnotifieritem' 'attica' 'kirigami-addons' 'appstream' 'flatpak' 'kuserfeedback6' 'discount' 'qt6-webview' 'fwupd' 'qcoro-qt6' 'kitemmodels6') makedepends=('extra-cmake-modules') conflicts=('discover6') replaces=('discover6') source=("https://download.kde.org/unstable/plasma/${_plasmaver}/${pkgname}-$_plasmaver.tar.xz" "https://invent.kde.org/plasma/discover/-/commit/34ce31a821c440ed73c7ef21efee7c55a42dcbce.diff") md5sums=(`grep ${pkgname}-${_plasmaver}.tar.xz ../kf6.md5 | cut -d" " -f1` 'c114592bd2edb8d775af59732be673fe') prepare() { cd ${pkgname}-${pkgver} #sed -i -e 's|||' libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp #patch -p1 -i ${srcdir}/34ce31a821c440ed73c7ef21efee7c55a42dcbce.diff } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_LIBEXECDIR=lib \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }