# Maintainer (arch): Felix Yan <felixonmars@archlinux.org>
# Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
# Contributor: bill-auger <bill-auger@programmer.net>


# parabola changes and rationale:
# - remove webengine dependents


pkgbase=kde-applications-meta
pkgname=(kde-applications-meta
         kde-accessibility-meta
         kde-education-meta
         kde-games-meta
         kde-graphics-meta
         kde-multimedia-meta
         kde-network-meta
         kde-office-meta
         kde-pim-meta
         kde-sdk-meta
         kde-system-meta
         kde-utilities-meta
         kdevelop-meta)
pkgver=24.02
pkgrel=2
pkgrel+=.parabola1
arch=(any)
license=(custom:many)
url='https://www.archlinux.org/'

package_kde-applications-meta() {
  pkgdesc='Meta package for KDE Applications'
  depends=(kde-accessibility-meta
           kde-education-meta
           kde-games-meta
           kde-graphics-meta
           kde-multimedia-meta
           kde-network-meta
           kde-office-meta
           kde-pim-meta
           kde-sdk-meta
           kde-system-meta
           kde-utilities-meta
           kdevelop-meta)
}

package_kde-accessibility-meta() {
  pkgdesc='Meta package for KDE accessibility applications'
  replaces=(kdeaccessibility-meta)
  depends=(kmag
           kmousetool
           kmouth
           kontrast)
}

package_kde-education-meta() {
  pkgdesc='Meta package for KDE education applications'
  replaces=(kdeedu-meta)
  depends=(artikulate
           blinken
           cantor
           kalgebra
           kalzium
           kanagram
           kbruch
           kgeography
           khangman
           kig
           kiten
           klettres
           kmplot
           ktouch
           kturtle
           kwordquiz
           marble
           minuet
           parley
           rocs
           step)
  depends=( ${depends[*]/cantor/} )
  depends=( ${depends[*]/kalgebra/} )
}

package_kde-games-meta() {
  pkgdesc='Meta package for KDE games'
  replaces=(kdegames-meta)
  depends=(bomber
           bovo
           granatier
           kajongg
           kapman
           katomic
           kblackbox
           kblocks
           kbounce
           kbreakout
           kdiamond
           kfourinline
           kgoldrunner
           kigo
           killbots
           kiriki
           kjumpingcube
           klines
           klickety
           kmahjongg
           kmines
           knavalbattle
           knetwalk
           knights
           kolf
           kollision
           konquest
           kpat
           kreversi
           kshisen
           ksirk
           ksnakeduel
           kspaceduel
           ksquares
           ksudoku
           ktuberling
           kubrick
           lskat
           palapeli
           picmi)
}

package_kde-graphics-meta() {
  pkgdesc='Meta package for KDE graphics applications'
  replaces=(kdegraphics-meta kdewebdev-meta)
  depends=(arianna
           colord-kde
           gwenview
           kamera
           kcolorchooser
           kimagemapeditor
           koko
           kolourpaint
           kruler
           okular
           skanlite
           spectacle
           svgpart
           kdegraphics-thumbnailers)
  depends=( ${depends[*]/arianna/} )
  depends=( ${depends[*]/kimagemapeditor/} )
}

package_kde-multimedia-meta() {
  pkgdesc='Meta package for KDE multimedia applications'
  replaces=(kdemultimedia-meta)
  depends=(audiocd-kio
           audiotube
           dragon
           elisa
           ffmpegthumbs
           juk
           k3b
           kamoso
           kasts
           kdenlive
           kmix
           kwave
           plasmatube)
  depends=( ${depends[*]/k3b/}  )
}

package_kde-network-meta() {
  pkgdesc='Meta package for KDE network applications'
  replaces=(kdenetwork-meta)
  depends=(alligator
           angelfish
           falkon
           kdeconnect
           kdenetwork-filesharing
           kget
           kio-extras
           kio-gdrive
           kio-zeroconf
           konqueror
           konversation
           krdc
           krfb
           ktorrent
           neochat
           tokodon)
  depends=( ${depends[*]/angelfish/}  )
  depends=( ${depends[*]/falkon/}     )
  depends=( ${depends[*]/kio-gdrive/} )
  depends=( ${depends[*]/neochat/}    )
  depends=( ${depends[*]/tokodon/}    )

  depends=( ${depends[*]/konqueror/} ) # FIXME: 'konqueror' needs upgrade/rebuild
}

package_kde-office-meta() {
  pkgdesc='Meta package for KDE office applications'
  depends=(ghostwriter)
  depends=( ${depends[*]/ghostwriter/} )
}

package_kde-pim-meta() {
  pkgdesc='Meta package for KDE PIM applications'
  replaces=(kdepim-meta)
  depends=(akonadiconsole
           akregator
           akonadi-calendar-tools
           grantlee-editor
           itinerary
           kaddressbook
           kalarm
           kleopatra
           kmail
           knotes
           kontact
           korganizer
           kdepim-addons
           merkuro
           zanshin)
  depends=( ${depends[*]/akonadiconsole/} )
  depends=( ${depends[*]/akonadi-calendar-tools/} )
  depends=( ${depends[*]/akregator/} )
  depends=( ${depends[*]/grantlee-editor/} )
  depends=( ${depends[*]/kaddressbook/} )
  depends=( ${depends[*]/kdepim-addons/} )
  depends=( ${depends[*]/kleopatra/} )
  depends=( ${depends[*]/kmail/} )
  depends=( ${depends[*]/knotes/} )
  depends=( ${depends[*]/kontact/} )
  depends=( ${depends[*]/korganizer/} )
  depends=( ${depends[*]/merkuro/} )
  depends=( ${depends[*]/zanshin/} )
}

package_kde-sdk-meta() {
  pkgdesc='Meta package for KDE SDK applications'
  replaces=(kdesdk-meta)
  depends=(cervisia
           dolphin-plugins
           kde-dev-scripts
           kde-dev-utils
           kapptemplate
           kcachegrind
           kdesdk-kio
           kirigami-gallery
           kompare
           lokalize
           poxml
           kdesdk-thumbnailers
           umbrello)
}

package_kde-system-meta() {
  pkgdesc='Meta package for KDE system applications'
  replaces=(kdeadmin-meta kdebase-meta)
  depends=(dolphin
           kcron
           kde-inotify-survey
           khelpcenter
           kio-admin
           kjournald
           ksystemlog
           partitionmanager)
  depends=( ${depends[*]/khelpcenter/} )
}

package_kde-utilities-meta() {
  pkgdesc='Meta package for KDE utilities applications'
  replaces=(kdeutils-meta)
  depends=(ark
           filelight
           isoimagewriter
           kalk
           kate
           kbackup
           kcalc
           kcharselect
           kclock
           kdebugsettings
           kdf
           kdialog
           keditbookmarks
           keysmith
           kfind
           kgpg
           kongress
           konsole
           krecorder
           kteatime
           ktimer
           ktrip
           kwalletmanager
           kweather
           markdownpart
           skanpage
           sweeper
           telly-skout
           yakuake)
}

package_kdevelop-meta() {
  pkgdesc='Meta package for KDevelop'
  depends=(kdevelop
           kdevelop-php
           kdevelop-python)

  depends=( ) # FIXME: 'kdevelop' needs upgrade/rebuild
}
