# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-plasma
maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=ocean-sound-theme
pkgver=6.3.5
pkgrel=0
pkgdesc="Ocean Sound Theme for Plasma"
arch="all"
url="https://invent.kde.org/plasma/ocean-sound-theme"
license="BSD-2-Clause AND CC-BY-SA-4.0 and CC0-1.0"
makedepends="
	extra-cmake-modules
	qt6-qttools-dev
	samurai
	"

case "$pkgver" in
	*.*.9*) _rel=unstable;;
	*) _rel=stable;;
esac

_repo_url="https://invent.kde.org/plasma/ocean-sound-theme.git"
source="https://download.kde.org/$_rel/plasma/$pkgver/ocean-sound-theme-$pkgver.tar.xz"
options="!check" # No code to test

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
a1c2f2c6e1c7ad9b4447041f448389cfc51b1ff422557507bbe35f762ea335b9f6e0174e9d96f4502677b6909fc09222d26ff1b0176f675f16caaa50c54ef81f  ocean-sound-theme-6.3.5.tar.xz
"
