# xkeyboard-config - Keyboard layout database
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=xkeyboard-config
version=2.47
release=1
desc="Keyboard layout database"
url="https://www.freedesktop.org/wiki/Software/XKeyboardConfig/"
license="MIT"
depend=""
makedepend="meson ninja"
source="https://x.org/pub/individual/data/xkeyboard-config/xkeyboard-config-2.47.tar.xz"
sha256="SKIP"

build() {
	cd "xkeyboard-config-2.47"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "xkeyboard-config-2.47"
	DESTDIR="$pkgdir" ninja -C build install
}
