aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkcddb/APKBUILD
blob: 084862f1f8f2499f31e66d5a01c44562bbe88ef7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libkcddb
pkgver=20.12.1
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="62a0251f7766064f9bc994606679c0c86d1c0e413da3e8148e599a6bf7ea4262680bc6fee84a7df368062bfbe8a84974c45f6981fd05f983a994eb3b4472ff2a  libkcddb-20.12.1.tar.xz"