vinix-ports / wayland / PKGBUILD.vile
27 lines · 27 sloc · 1.28 KB · a65072c8557aa8e8e68c7a3bbf9688bb7503c44e
Raw
1defpkgbuild(wayland,
2 #:pkgname, "wayland",
3 #:pkgver, "1.23.1",
4 #:pkgrel, 1,
5 #:pkgdesc, "Wayland display protocol libraries and scanner",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://wayland.freedesktop.org/",
9 #:depends, ["musl", "expat", "libffi"],
10 #:source, ["https://gitlab.freedesktop.org/wayland/wayland/-/releases/1.23.1/downloads/wayland-1.23.1.tar.xz"],
11 #:sha256sums, ["864fb2a8399e2d0ec39d56e9d9b753c093775beadc6022ce81f441929a81e5ed"],
12 #:build, fn() {
13 ; Meson uses the matching native wayland-scanner to generate the target protocol.
14 run("vinix-meson", "wayland-1.23.1", "build", "--wrap-mode=nofallback",
15 "-Ddocumentation=false", "-Ddtd_validation=false", "-Dtests=false")
16 run("meson", "compile", "-C", "build", "-j2")
17 },
18 #:check, fn() {
19 run("vinix-run", "build/src/wayland-scanner", "-s", "client-header",
20 "wayland-1.23.1/protocol/wayland.xml", "client-check.h")
21 run("cmp", "client-check.h", "build/src/wayland-client-protocol.h")
22 run("readelf", "-d", "build/src/libwayland-client.so")
23 },
24 #:package, fn() {
25 run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())
26 run("install", "-Dm644", "wayland-1.23.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/wayland/COPYING"))
27 })
28