# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkcddb pkgver=19.12.1 pkgrel=0 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=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="dd8401f603f15d46f1daeda10f9f853e51dcfa1518a12e0f5eaf6dc9148f395e9c75e175fbc1dc6c02efc5e86e72b50bac82cd21e0cdf178e2bc0780f7ffea59 libkcddb-19.12.1.tar.xz"