vinix-ports / ports / vinix-release-x11 / PKGBUILD.vile
20 lines · 19 sloc · 1.03 KB · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1selected := get-environment-variable("VPAC_TARGET_ARCH")
2arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }
3common := list("xinit", "xf86-video-fbdev", "xauth", "xmodmap", "xrdb", "mesa-demos",
4 "libxv", "libxrandr", "xtrans", "glu-headers")
5
6defpkgbuild(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