# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kfilemetadata pkgver=5.69.0 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 ffmpeg-dev attr-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kfilemetadata-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make -C 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" make -C build install } sha512sums="148ad4e1c2ab86692206c11c731bb2a526b680f0df87000e48737ba7f87046d7526e657e44e9e5b61fe9b3d6516784291c1c4dd15d39c486df2c72a460e4d1c6 kfilemetadata-5.69.0.tar.xz"