# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-other
maintainer="team/kde <bribbers@disroot.org>"
pkgname=plasma-wayland-protocols
pkgver=1.16.0
pkgrel=0
pkgdesc="Plasma Specific Protocols for Wayland"
arch="noarch"
url="https://www.kde.org/plasma-desktop/"
license="GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1-only"
makedepends="
	extra-cmake-modules
	qt6-qttools-dev
	samurai
	"
_repo_url="https://invent.kde.org/libraries/plasma-wayland-protocols.git"
source="https://download.kde.org/stable/plasma-wayland-protocols/plasma-wayland-protocols-$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="
2befeffcb4593ba6efeb19202adc136c4ffef0b7851fe81ed68d5dd5add91d11c88fcd1e09ac4767f3827dbd6b6a3c48e769b864f5e1fea9ae88674d61d9ea47  plasma-wayland-protocols-1.16.0.tar.xz
"
