# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-frameworks pkgname=kcoreaddons pkgver=9999_git1691977354 pkgrel=2 pkgdesc="Addons to QtCore" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)" depends_dev="qt5-qtbase-dev" makedepends="$depends_dev breeze-icons doxygen extra-cmake-modules graphviz qt5-qttools-dev samurai shared-mime-info " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/frameworks/kcoreaddons.git" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kcoreaddons-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc kde-default-icon-theme:icons:noarch" _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/frameworks/kcoreaddons.git . git archive --format tar --prefix=$pkgname/ $_commit > ../$pkgname-$_commit.tar xz -vv -T0 -9 -e ../$pkgname-$_commit.tar } build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { # klistopenfilesjobtest_unix requires >8000 open files local disabled_tests="klistopenfilesjobtest_unix|kdirwatch_qfswatch_unittest|kdirwatch_stat_unittest|knetworkmountstestpaths" case "$CARCH" in s390x) disabled_tests="$disabled_tests|kdirwatch_inotify_unittest" ;; x86_64) disabled_tests="$disabled_tests|kfileutilstest" ;; # Only fails on builders esac xvfb-run ctest --test-dir build --output-on-failure -E "($disabled_tests)" } package() { DESTDIR="$pkgdir" cmake --install build } icons() { pkgdesc="Virtual to automatically pull in breeze icons by default for KDE apps" install_if="$pkgname=$pkgver-r$pkgrel" depends="breeze-icons" mkdir -p "$subpkgdir" } sha512sums=" 04d19ab91a4df6a08aade99c042483bf9040e10e75cb8b1f84e264ae260cd2e178a8a1968b5ed455f5a3d686df9104cc51f22849342514f1f617adb401313faa kcoreaddons-5.108.0.tar.xz " options="$options !strip"