# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=kde-applications
pkgver=24.08.0
pkgrel=0
arch="noarch !ppc64le !s390x" # Limited by edu, network, umbrello and pim
url="https://kde.org/applications/"
pkgdesc="KDE Applications meta package"
license="GPL-3.0-or-later"
subpackages="
	$pkgname-accessibility::noarch
	$pkgname-admin::noarch
	$pkgname-base::noarch
	$pkgname-edu
	$pkgname-games::noarch
	$pkgname-graphics::noarch
	$pkgname-multimedia::noarch
	$pkgname-network
	$pkgname-pim
	$pkgname-sdk::noarch
	$pkgname-utils::noarch
	$pkgname-webdev::noarch"
depends="
	$pkgname-accessibility
	$pkgname-admin
	$pkgname-base
	$pkgname-edu
	$pkgname-games
	$pkgname-graphics
	$pkgname-multimedia
	$pkgname-network
	$pkgname-pim
	$pkgname-sdk
	$pkgname-utils
	$pkgname-webdev"
options="!check" # Meta package

package() {
	mkdir -p "$pkgdir"
}

accessibility() {
	depends="
		kmag
		kmousetool
		kmouth
		"

	mkdir -p "$subpkgdir"
}

admin() {
	depends="
		kcron
		"

	mkdir -p "$subpkgdir"
}

base() {
	depends="
		ark
		audiocd-kio
		dolphin
		ffmpegthumbs
		gwenview
		kate
		kdenetwork-filesharing
		kdialog
		kfind
		kio-extras
		kolourpaint
		konsole
		kwrite
		okular
		print-manager
		spectacle
		"

	mkdir -p "$subpkgdir"
}

edu() {
	depends="
		artikulate
		blinken
		cantor
		kalgebra
		kalzium
		kanagram
		kbruch
		kgeography
		khangman
		kig
		kiten
		klettres
		kmplot
		ktouch
		kturtle
		kwordquiz
		marble
		minuet
		parley
		rocs
		step
		"

	mkdir -p "$subpkgdir"
}

games() {
	depends=""

	mkdir -p "$subpkgdir"
}

graphics() {
	depends="
		gwenview
		kcolorchooser
		kolourpaint
		kruler
		okular
		spectacle
		"

	mkdir -p "$subpkgdir"
}

multimedia() {
	depends="
		audiocd-kio
		dragon
		juk
		kamoso
		kdenlive
		kmix
		kwave
		"

	mkdir -p "$subpkgdir"
}

network() {
	depends="
		kget	
		kio-zeroconf
		kio-extras
		"

	mkdir -p "$subpkgdir"
}

pim() {
	depends="
		akregator
		akonadi-calendar-tools
		kaddressbook
		kalarm
		kleopatra
		kmail
		knotes
		kontact
		korganizer
		kdepim-addons
		grantlee-editor
		"

	mkdir -p "$subpkgdir"
}

sdk() {
	depends="
		cervisia
		dolphin-plugins
		kde-dev-scripts
		kde-dev-utils
		kapptemplate
		kcachegrind
		kdesdk-kio
		kirigami-gallery
		kompare
		lokalize
		poxml
		kdesdk-thumbnailers
		umbrello
		"

	mkdir -p "$subpkgdir"
}

utils() {
	depends="
		ark
		filelight
		kbackup
		kcalc
		kcharselect
		kdebugsettings
		kdf
		keditbookmarks
		kteatime
		ktimer
		kwalletmanager
		print-manager
		sweeper"

	mkdir -p "$subpkgdir"
}

webdev() {
	depends="
		kimagemapeditor
		"

	mkdir -p "$subpkgdir"
}

