# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=libkcddb pkgver=23.04.3 pkgrel=1 # armhf blocked by extra-cmake-modules arch="all !armhf" 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 kcmutils-dev kcodecs-dev kconfig-dev kdoctools-dev ki18n-dev kio-dev kwidgetsaddons-dev libmusicbrainz-dev qt5-qtbase-dev samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/multimedia/libkcddb.git" 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 -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=ON cmake --build build } check() { # musicbrainztest-severaldiscs fails due to utf16/8 (?) # synchttplookuptest hangs # asyncmusicbrainztest http request # utf8test seems to fail to start dbus-daemon xvfb-run -a ctest --test-dir build --output-on-failure \ -E "(asyncmusicbrainztest|synchttplookuptest|musicbrainztest-severaldiscs|utf8test)" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" a3537448286e313f2a0be3be50c28a0789117496c1bbb60a0ab2db81a5886d4097fb48c121755e38c36b0c337cc01aebe90ff413c31ae1fc353f93264ae3f6f8 libkcddb-23.04.3.tar.xz "