# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkcddb pkgver=19.12.2 pkgrel=1 arch="all !armhf" # armhf blocked by extra-cmake-modules 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" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=ON make } check() { cd "$builddir"/build # musicbrainztest-severaldiscs is broken CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "musicbrainztest-severaldiscs" } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="55479909f636a429e603556b3126e18e8b44f477fc47b9946f46155da11138b3e81bca4fb407e3234f2d885e348dffaf1b4e1548574cd2f6ed6bf2475cb92fd3 libkcddb-19.12.2.tar.xz"