# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=gcompris-qt
pkgver=4.1
pkgrel=0
pkgdesc="Educational software suite comprising of numerous activities for children aged 2 to 10"
url="https://gcompris.net"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="GPL-3.0-or-later"
depends="
	qt5-qtquickcontrols2
	qt5-qtsvg
	"
makedepends="
	extra-cmake-modules
	kdoctools5
	qt5-qtcharts-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsensors-dev
	qt5-qtsvg-dev
	qt5-qttools
	qt5-qttools-dev
	qt5-qtxmlpatterns-dev
	samurai
	"
source="https://download.kde.org/stable/gcompris/qt/src/gcompris-qt-$pkgver.tar.xz"
options="!check" # No test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DQML_BOX2D_LIBRARY=/usr/lib/qt/qml/Box2D.2.0
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
ffdc043e7fb1696cc24bf7b5c8acd6c6dd141acb14051d580d5a85b211938a6331869bad258ce73b9cbb86615d915c227732fe543427c871471929f8eacbd198  gcompris-qt-4.1.tar.xz
"
