# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkcddb pkgver=19.08.3 pkgrel=0 arch="all" 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/applications/$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=RelWithDebInfo \ -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="2d24289bf67c4063fad0e61b2b1e0a062cb2db0e9b5c7e82965e140691d69537c811552871296c9f3e0d8d695596c1386485a7626f8d8d3f79d898827652d659 libkcddb-19.08.3.tar.xz"