| 1 | selected := get-environment-variable("VPAC_TARGET_ARCH") |
| 2 | arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } |
| 3 | common := list("xinit", "xf86-video-fbdev", "xauth", "xmodmap", "xrdb", "mesa-demos", |
| 4 | "libxv", "libxrandr", "xtrans", "glu-headers") |
| 5 | |
| 6 | defpkgbuild(vinix-release-x11, |
| 7 | #:pkgname, "vinix-release-x11", |
| 8 | #:pkgver, "20261128", |
| 9 | #:pkgrel, 1, |
| 10 | #:pkgdesc, "Vinix release Xorg, Xvfb, X11 clients, graphics libraries, fonts and headers", |
| 11 | #:arch, [#:x86-64, #:aarch64], |
| 12 | #:url, "https://github.com/vlang/vinix", |
| 13 | #:license, "0BSD", |
| 14 | #:depends, if string=?("aarch64", arch) { append(common, list("musl>=1.2.6-4")) } else { common }, |
| 15 | #:package, fn() { |
| 16 | ; The release sidecar exposed its bitmap files at this shorter path. |
| 17 | ; Share the owned fonts and mutable index with the X server's standard path. |
| 18 | run("mkdir", "-p", string-append(pkgdir(), "/usr/share/fonts")) |
| 19 | run("ln", "-s", "X11/misc", string-append(pkgdir(), "/usr/share/fonts/misc")) |
| 20 | }) |
| 21 | |