# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kfilemetadata pkgver=5.59.0 pkgrel=0 pkgdesc="A library for extracting file metadata" arch="all" 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 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%.*}/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { # extractorcoveragetest, propertyinfotest_localized, extractorcollectiontest fail on armhf CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E '(extractorcoveragetest|propertyinfotest_localized|extractorcollectiontest)' } package() { DESTDIR="$pkgdir" make install } sha512sums="ef427635762f63b79aede696dd61855add888e97bf0eeeaaf24fbfb6338ad4b9caf45c7903d2a7682a7494b6a48e608f74626d486d480c166057632b3b70552c kfilemetadata-5.59.0.tar.xz"