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