# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=elisa
pkgver=0_git20180510
pkgrel=0
_commit="7c35d883b8e129171211713bf074627796855d75"
pkgdesc='Elisa Music Player'
arch="all"
url='https://github/com/kde/elisa'
license="LGPL-3"
depends=""
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev
	qt5-qtsvg-dev ki18n-dev kdeclarative-dev baloo-dev kfilemetadata-dev kxmlgui-dev
	kconfig-dev kcmutils-dev kpackage-dev"
source="https://github.com/kde/$pkgname/archive/$_commit.tar.gz"
options="!check" # Fails for unknown reasons
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}
sha512sums="69cc097452f649dfe7a97ff37026ccd65b3115173b98e8136f666e60cdb9375c23ad4b6958b23d2675b8d2fed5ca09a678e5f48decd1962c6026c17a52879a43  7c35d883b8e129171211713bf074627796855d75.tar.gz"
