# Template file for 'libkdegames'
pkgname=libkdegames
version=26.04.1
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF -DKF6_HOST_TOOLING=/usr/lib/cmake
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules"
hostmakedepends="extra-cmake-modules pkg-config qt6-base qt6-declarative-host-tools
 qt6-xml
 kf6-kconfig kf6-kcoreaddons kf6-kdoctools kf6-kpackage gettext"
makedepends="qt6-svg-devel qt6-declarative-devel qt6-base-devel
 kf6-karchive-devel
 kf6-kconfig-devel
 kf6-kguiaddons-devel
 kf6-kiconthemes-devel
 kf6-ki18n-devel
 kf6-knewstuff-devel kf6-kdnssd-devel
 kf6-kdeclarative-devel kf6-kcolorscheme-devel kf6-kxmlgui-devel
 kf6-kcompletion-devel kf6-kconfigwidgets-devel
 libopenal-devel libsndfile-devel"
short_desc="Common code and data for many KDE games"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="GPL-2.0-or-later"
homepage="https://kde.org/applications/games"
changelog="https://kde.org/announcements/changelogs/gear/${version}/#libkdegames"
distfiles="${KDE_SITE}/release-service/${version}/src/libkdegames-${version}.tar.xz"
checksum=31c83b61851eb7879a4b96c961cdeb32f4e131ab798122c18db59ed673f0af14

libkdegames-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
