# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=wf-config
pkgver=0.8.0
pkgrel=1
pkgdesc="Library for managing configuration files written for Wayfire"
url="https://wayfire.org"
arch="all"
license="MIT"
makedepends="
	meson
	libevdev-dev
	libxml2-dev
	glm-dev
	linux-headers
	"
options="!check" # no testsuite
subpackages="$pkgname-dev"
source="https://github.com/WayfireWM/wf-config/releases/download/v$pkgver/wf-config-$pkgver.tar.xz
	gcc14.patch
	"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
79cca2429a39ee81f853043698c57fc08025634926773253cff73fc564dcf203335b4b861d82b60a769bbab7b07be6a7e181c9ea29ad98ce930de20f9723893f  wf-config-0.8.0.tar.xz
5ec149394d4586aa72c098f9c150bdf3796e31b36b28e722cf7228449e99b7748d3e3c3eb0b9538f203941e0089f5dfc3020de958ce84b841d5c5a6f74c37137  gcc14.patch
"
