defpkgbuild(xkeyboard-config, #:pkgname, "xkeyboard-config", #:pkgver, "2.43", #:pkgrel, 2, #:pkgdesc, "X keyboard configuration files", #:arch, [#:any], #:license, "MIT", #:url, "https://www.x.org/", #:source, ["https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/archive/xkeyboard-config-2.43/xkeyboard-config-xkeyboard-config-2.43.tar.gz"], #:sha256sums, ["460cd2fd1e880a6f223951a6cbafb67a99569f7556360151e49b43e4e60601e9"], #:build, fn() { ; Upstream otherwise drops every translation when the build host lacks gettext. run("msgfmt", "--version") run("meson", "setup", "build", "xkeyboard-config-xkeyboard-config-2.43", "--prefix=/usr", "-Dnls=true") run("meson", "compile", "-C", "build", "-j2") }, #:check, fn() { run("test", "-s", "build/rules/evdev") }, #:package, fn() { run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir()) run("test", "-s", string-append(pkgdir(), "/usr/share/locale/de/LC_MESSAGES/xkeyboard-config.mo")) run("install", "-Dm644", "xkeyboard-config-xkeyboard-config-2.43/COPYING", string-append(pkgdir(), "/usr/share/licenses/xkeyboard-config/COPYING")) })