| 1 | defpkgbuild(vinix-x11, |
| 2 | #:pkgname, "vinix-x11", |
| 3 | #:pkgver, "0.1.0", |
| 4 | #:pkgrel, 1, |
| 5 | #:pkgdesc, "Vinix X11 input bridge, embedded Wine display host and release configuration", |
| 6 | #:arch, [#:x86-64, #:aarch64], |
| 7 | #:url, "https://github.com/vlang/vinix", |
| 8 | #:license, "GPL-2.0-or-later", |
| 9 | #:depends, ["libxtst", "libxdamage", "libx11", "libxext", "libxcb"], |
| 10 | #:backup, ["etc/X11/xorg.conf", "root/.xinitrc"], |
| 11 | #:source, [ |
| 12 | "xinputcore-core.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/xinputcore/core.v", |
| 13 | "xinputcore-native.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/xinputcore/native.v", |
| 14 | "winehost-core.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/winehost/core.v", |
| 15 | "winehost-native.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/winehost/native.v", |
| 16 | "winehost-package.v::https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/winehost/package.v", |
| 17 | "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/wine-host-v-abi.h", |
| 18 | "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/build-support/xorg-server/xinput_abi.h", |
| 19 | "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/tools/packages/x11auth/auth.v", |
| 20 | "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/scripts/build-x11-aarch64.sh", |
| 21 | "https://raw.githubusercontent.com/vlang/vinix/c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75/LICENSE", |
| 22 | "build.v" |
| 23 | ], |
| 24 | #:sha256sums, [ |
| 25 | "17d005da80876e46069f16f7cfe5c58ccc3372bfcb58308c10a0151fab938d93", |
| 26 | "6d72de3d40e223dfd84bc5ac90a73f9f2684a62927b4188085cb8ec2df6bec68", |
| 27 | "377b3af2a806f7778915bf1791207653f3d41c8287720c5a845decd3302f654a", |
| 28 | "24c67490255562ec1f0860792fc18856bd4dfe00161d6478e41644e258acf90b", |
| 29 | "7ce47e4cacad1fc1acbcd7a91dc2bd25b5fd127407307785f5996a923bdcccb3", |
| 30 | "4853d2daf1350ec92ba7a1fad5c24da33e3d7308df116e92d953cb1692a5d83a", |
| 31 | "5cbe518509c7fccf8f59aeb146230ac2bd855339f4f4e174fe0f3c3c8a6fb772", |
| 32 | "e1f0b2bdfb76c56ae6bf8cd26a1b766c4eed0a3727f9848f3e55922dc7e33ec1", |
| 33 | "80da3c1abb11c45b0d5f60ea1fe2a4ffd511a72acea384c597463e71c22e1504", |
| 34 | "8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643", |
| 35 | "f39277ec431622df3791721f365abfb76ac648f6e7a2d04295f1d0115b5d13a2" |
| 36 | ], |
| 37 | #:build, fn() { |
| 38 | run("v", "run", "build.v") |
| 39 | }, |
| 40 | #:check, fn() { |
| 41 | run("readelf", "-d", "vinix-xinput") |
| 42 | run("readelf", "-d", "vinix-wine-host") |
| 43 | run("grep", "-Fq", "/dev/fb0", "xorg.conf") |
| 44 | run("grep", "-Fq", "exec xclock", "xinitrc") |
| 45 | }, |
| 46 | #:package, fn() { |
| 47 | run("install", "-Dm755", "vinix-xinput", string-append(pkgdir(), "/usr/bin/vinix-xinput")) |
| 48 | run("install", "-Dm755", "vinix-wine-host", string-append(pkgdir(), "/usr/bin/vinix-wine-host")) |
| 49 | run("install", "-Dm644", "xorg.conf", string-append(pkgdir(), "/etc/X11/xorg.conf")) |
| 50 | run("install", "-Dm755", "xinitrc", string-append(pkgdir(), "/root/.xinitrc")) |
| 51 | run("install", "-Dm644", "LICENSE", string-append(pkgdir(), "/usr/share/licenses/vinix-x11/LICENSE")) |
| 52 | }) |
| 53 | |