# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkcddb pkgver=20.12.2 pkgrel=0 # armhf blocked by extra-cmake-modules # s390x, mips64 blocked by kio-dev arch="all !armhf !s390x !mips64" url="https://www.kde.org/applications/multimedia/" pkgdesc="KDE CDDB library" license="LGPL-2.0-or-later AND GPL-2.0-or-later" makedepends="extra-cmake-modules qt5-qtbase-dev kconfig-dev kdoctools-dev kcodecs-dev ki18n-dev kio-dev kwidgetsaddons-dev libmusicbrainz-dev" source="https://download.kde.org/stable/release-service/$pkgver/src/libkcddb-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" options="net" # Required for tests build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=ON cmake --build build } check() { cd build # musicbrainztest-severaldiscs and asynccddblookuptest are broken # asynchttplookuptest fails to setup dbus CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(musicbrainztest-severaldiscs|asynchttplookuptest|asynccddblookuptest)" } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="4e4843093e9002686297e6d6e585095b5bacd002202ca1ad0f74f7fd9857fb1383de468f5a3a3ef006880def042ff7ca833931d25bae793325074dd6afa22fe5 libkcddb-20.12.2.tar.xz"