From 23dd9b0592b5fc74377dc683b1b58b511faf3458 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 02:00:40 +0100 Subject: [PATCH] Package Wayland protocol definitions and translated XKB rules --- wayland-protocols/PKGBUILD.vile | 19 +++++++++++++++++++ xkeyboard-config/PKGBUILD.vile | 26 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 wayland-protocols/PKGBUILD.vile create mode 100644 xkeyboard-config/PKGBUILD.vile diff --git a/wayland-protocols/PKGBUILD.vile b/wayland-protocols/PKGBUILD.vile new file mode 100644 index 0000000..c63ad46 --- /dev/null +++ b/wayland-protocols/PKGBUILD.vile @@ -0,0 +1,19 @@ +defpkgbuild(wayland-protocols, + #:pkgname, "wayland-protocols", + #:pkgver, "1.38", + #:pkgrel, 1, + #:pkgdesc, "Wayland protocol XML and enumeration headers", + #:arch, [#:any], + #:license, "MIT", + #:url, "https://wayland.freedesktop.org/", + #:source, ["https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.38/downloads/wayland-protocols-1.38.tar.xz"], + #:sha256sums, ["ff17292c05159d2b20ce6cacfe42d7e31a28198fa1429a769b03af7c38581dbe"], + #:build, fn() { + run("meson", "setup", "build", "wayland-protocols-1.38", "--prefix=/usr", "--wrap-mode=nofallback", "-Dtests=false") + run("meson", "compile", "-C", "build", "-j2") + }, + #:package, fn() { + run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir()) + run("test", "-s", string-append(pkgdir(), "/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml")) + run("install", "-Dm644", "wayland-protocols-1.38/COPYING", string-append(pkgdir(), "/usr/share/licenses/wayland-protocols/COPYING")) + }) diff --git a/xkeyboard-config/PKGBUILD.vile b/xkeyboard-config/PKGBUILD.vile new file mode 100644 index 0000000..dee10e2 --- /dev/null +++ b/xkeyboard-config/PKGBUILD.vile @@ -0,0 +1,26 @@ +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")) + }) -- 2.56.1