me

/

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

Build target Wayland libraries and check its scanner output

diviocity committed 6 days ago · a65072c8557aa8e8e68c7a3bbf9688bb7503c44e View patch
Unverified signature 1 files changed +27 -0
wayland/PKGBUILD.vile new file +27 -0

@@ -0,0 +1,27 @@

1+defpkgbuild(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+ })