me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Package Wayland protocol definitions and translated XKB rules

diviocity committed 5 days ago · 23dd9b0592b5fc74377dc683b1b58b511faf3458 View patch
Unverified signature 2 files changed +45 -0
wayland-protocols/PKGBUILD.vile new file +19 -0

@@ -0,0 +1,19 @@

1+defpkgbuild(wayland-protocols,

2+ #:pkgname, "wayland-protocols",

3+ #:pkgver, "1.38",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "Wayland protocol XML and enumeration headers",

6+ #:arch, [#:any],

7+ #:license, "MIT",

8+ #:url, "https://wayland.freedesktop.org/",

9+ #:source, ["https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.38/downloads/wayland-protocols-1.38.tar.xz"],

10+ #:sha256sums, ["ff17292c05159d2b20ce6cacfe42d7e31a28198fa1429a769b03af7c38581dbe"],

11+ #:build, fn() {

12+ run("meson", "setup", "build", "wayland-protocols-1.38", "--prefix=/usr", "--wrap-mode=nofallback", "-Dtests=false")

13+ run("meson", "compile", "-C", "build", "-j2")

14+ },

15+ #:package, fn() {

16+ run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())

17+ run("test", "-s", string-append(pkgdir(), "/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml"))

18+ run("install", "-Dm644", "wayland-protocols-1.38/COPYING", string-append(pkgdir(), "/usr/share/licenses/wayland-protocols/COPYING"))

19+ })

xkeyboard-config/PKGBUILD.vile new file +26 -0

@@ -0,0 +1,26 @@

1+defpkgbuild(xkeyboard-config,

2+ #:pkgname, "xkeyboard-config",

3+ #:pkgver, "2.43",

4+ #:pkgrel, 2,

5+ #:pkgdesc, "X keyboard configuration files",

6+ #:arch, [#:any],

7+ #:license, "MIT",

8+ #:url, "https://www.x.org/",

9+ #:source, ["https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/archive/xkeyboard-config-2.43/xkeyboard-config-xkeyboard-config-2.43.tar.gz"],

10+ #:sha256sums, ["460cd2fd1e880a6f223951a6cbafb67a99569f7556360151e49b43e4e60601e9"],

11+

12+ #:build, fn() {

13+ ; Upstream otherwise drops every translation when the build host lacks gettext.

14+ run("msgfmt", "--version")

15+ run("meson", "setup", "build", "xkeyboard-config-xkeyboard-config-2.43", "--prefix=/usr", "-Dnls=true")

16+ run("meson", "compile", "-C", "build", "-j2")

17+ },

18+ #:check, fn() {

19+ run("test", "-s", "build/rules/evdev")

20+ },

21+ #:package, fn() {

22+ run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())

23+ run("test", "-s", string-append(pkgdir(), "/usr/share/locale/de/LC_MESSAGES/xkeyboard-config.mo"))

24+ run("install", "-Dm644", "xkeyboard-config-xkeyboard-config-2.43/COPYING",

25+ string-append(pkgdir(), "/usr/share/licenses/xkeyboard-config/COPYING"))

26+ })