aboutsummaryrefslogtreecommitdiffstats
path: root/community/kfilemetadata/APKBUILD
blob: a81ce9b4d743de4ad98c41be1100902eed08cd40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kfilemetadata
pkgver=5.62.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%.*}/kfilemetadata-$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="9f2ea25d6084be367013092c2d8cf263a0708be64ce0f6c66fef9e13bb89208f06591b5e57c7d78177ec3457f810ec0e4aecb5f52410158f0ebec0c493a425c8  kfilemetadata-5.62.0.tar.xz"