defpkgbuild(vinix-x11, #:pkgname, "vinix-x11", #:pkgver, "0.1.0", #:pkgrel, 1, #:pkgdesc, "Vinix X11 input bridge, embedded Wine display host and release configuration", #:arch, [#:x86-64, #:aarch64], #:url, "https://github.com/vlang/vinix", #:license, "GPL-2.0-or-later", #:depends, ["libxtst", "libxdamage", "libx11", "libxext", "libxcb"], #:backup, ["etc/X11/xorg.conf", "root/.xinitrc"], #:source, [ "xinputcore-core.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/xinputcore/core.v", "xinputcore-native.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/xinputcore/native.v", "winehost-core.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/winehost/core.v", "winehost-native.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/winehost/native.v", "winehost-package.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/winehost/package.v", "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/wine-host-v-abi.h", "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/xinput_abi.h", "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/tools/packages/x11auth/auth.v", "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/scripts/build-x11-aarch64.sh", "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/LICENSE", "build.v" ], #:sha256sums, [ "17d005da80876e46069f16f7cfe5c58ccc3372bfcb58308c10a0151fab938d93", "6d72de3d40e223dfd84bc5ac90a73f9f2684a62927b4188085cb8ec2df6bec68", "377b3af2a806f7778915bf1791207653f3d41c8287720c5a845decd3302f654a", "24c67490255562ec1f0860792fc18856bd4dfe00161d6478e41644e258acf90b", "7ce47e4cacad1fc1acbcd7a91dc2bd25b5fd127407307785f5996a923bdcccb3", "4853d2daf1350ec92ba7a1fad5c24da33e3d7308df116e92d953cb1692a5d83a", "5cbe518509c7fccf8f59aeb146230ac2bd855339f4f4e174fe0f3c3c8a6fb772", "e1f0b2bdfb76c56ae6bf8cd26a1b766c4eed0a3727f9848f3e55922dc7e33ec1", "80da3c1abb11c45b0d5f60ea1fe2a4ffd511a72acea384c597463e71c22e1504", "8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643", "f39277ec431622df3791721f365abfb76ac648f6e7a2d04295f1d0115b5d13a2" ], #:build, fn() { run("v", "run", "build.v") }, #:check, fn() { run("readelf", "-d", "vinix-xinput") run("readelf", "-d", "vinix-wine-host") run("grep", "-Fq", "/dev/fb0", "xorg.conf") run("grep", "-Fq", "exec xclock", "xinitrc") }, #:package, fn() { run("install", "-Dm755", "vinix-xinput", string-append(pkgdir(), "/usr/bin/vinix-xinput")) run("install", "-Dm755", "vinix-wine-host", string-append(pkgdir(), "/usr/bin/vinix-wine-host")) run("install", "-Dm644", "xorg.conf", string-append(pkgdir(), "/etc/X11/xorg.conf")) run("install", "-Dm755", "xinitrc", string-append(pkgdir(), "/root/.xinitrc")) run("install", "-Dm644", "LICENSE", string-append(pkgdir(), "/usr/share/licenses/vinix-x11/LICENSE")) })