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")) })