# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=spice-protocol
pkgver=0.14.2
pkgrel=0
pkgdesc="Spice protocol header files"
url="https://www.spice-space.org/"
arch="noarch"
options="!check"  # No test suite.
license="BSD-3-Clause AND LGPL-2.1+"
depends=""
makedepends="meson ninja"
subpackages=""
source="https://www.spice-space.org/download/releases/$pkgname-$pkgver.tar.xz"

build() {
	meson -Dprefix=/usr -Ddatadir=lib build
	ninja -C build
}

check() {
	ninja -C build check
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="181015f0f56d679ebfdbd6dbed37b50b1c0be550a714e8faf70624631d9a246fe68454eb44a1bae1765e1739f2d7469ab767c44f49776751826a4919ec88160e  spice-protocol-0.14.2.tar.xz"