aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkcddb/APKBUILD
blob: 48c37cbd57b1da691dbc8e5e2858b40061b0628c (plain)
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
38
39
40
41
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
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"