# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=wf-config
pkgver=0.9.0
pkgrel=0
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"

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

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}

sha512sums="
ac2ca69b7d96b9b145a4789f004705a2d7b323e6724e429a1e5a4544cd56828165a01f48a9863ceb92004c51c8f05729468f4a32c37545716f8d537d39e3236b  wf-config-0.9.0.tar.xz
"
