# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kfilemetadata pkgver=9999_git1689299653 pkgrel=0 pkgdesc="A library for extracting file metadata" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later AND ( LGPL-2.1-only OR LGPL-3.0-only )" depends_dev="qt5-qtbase-dev karchive-dev kcoreaddons-dev ki18n-dev kconfig-dev exiv2-dev taglib-dev attr-dev" makedepends="$depends_dev extra-cmake-modules ffmpeg-dev qt5-qttools-dev doxygen samurai" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kfilemetadata-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc " build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build # Broken tests local skipped_tests="(" local tests=" usermetadatawritertest extractorcoveragetest propertyinfotest_localized extractorcollectiontest " for test in $tests; do skipped_tests="$skipped_tests|$test" done skipped_tests="$skipped_tests)test" CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "$skipped_tests" } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums=" f1a8d20ae91809f736d0355a3fafb9be0e77482b8c7fd6a5ff66f0f6937f4ad61c26841d9bcee2574fdb55f6dcfc1670ec26fef70f3f2a0613ba6a30a7826489 kfilemetadata-5.108.0.tar.xz " options="$options !strip"