From e812945082e009b65c96f90b4e01db87d21b3480 Mon Sep 17 00:00:00 2001 From: diviocity Date: Sun, 29 Nov 2026 23:21:07 +0100 Subject: [PATCH] Bootstrap X11 protocol inputs and client authorization libraries --- libxau/PKGBUILD.vile | 31 +++++++++++++++++++++++++++++++ libxdmcp/PKGBUILD.vile | 31 +++++++++++++++++++++++++++++++ util-macros/PKGBUILD.vile | 22 ++++++++++++++++++++++ xcb-proto/PKGBUILD.vile | 22 ++++++++++++++++++++++ xorgproto/PKGBUILD.vile | 32 ++++++++++++++++++++++++++++++++ xtrans/PKGBUILD.vile | 27 +++++++++++++++++++++++++++ 6 files changed, 165 insertions(+) create mode 100644 libxau/PKGBUILD.vile create mode 100644 libxdmcp/PKGBUILD.vile create mode 100644 util-macros/PKGBUILD.vile create mode 100644 xcb-proto/PKGBUILD.vile create mode 100644 xorgproto/PKGBUILD.vile create mode 100644 xtrans/PKGBUILD.vile diff --git a/libxau/PKGBUILD.vile b/libxau/PKGBUILD.vile new file mode 100644 index 0000000..50bec8f --- /dev/null +++ b/libxau/PKGBUILD.vile @@ -0,0 +1,31 @@ +defpkgbuild(libxau, + #:pkgname, "libxau", + #:pkgver, "1.0.11", + #:pkgrel, 1, + #:pkgdesc, "X11 authorization library", + #:arch, [#:x86-64], + #:license, "MIT", + #:url, "https://xorg.freedesktop.org/", + #:depends, ["musl"], + #:makedepends, ["xorgproto"], + #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXau-1.0.11.tar.xz"], + #:sha256sums, ["f3fa3282f5570c3f6bd620244438dbfbdd580fc80f02f549587a0f8ab329bbeb"], + + #:build, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc", + "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"), + string-append("PKG_CONFIG_SYSROOT_DIR=", root), + "libXau-1.0.11/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr") + run("make") + }, + #:check, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("make", "Autest") + run(string-append(root, "/lib/ld-musl-x86_64.so.1"), "--library-path", ".libs", ".libs/Autest") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("find", pkgdir(), "-name", "*.la", "-delete") + run("install", "-Dm644", "libXau-1.0.11/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxau/COPYING")) + }) diff --git a/libxdmcp/PKGBUILD.vile b/libxdmcp/PKGBUILD.vile new file mode 100644 index 0000000..eb4b0aa --- /dev/null +++ b/libxdmcp/PKGBUILD.vile @@ -0,0 +1,31 @@ +defpkgbuild(libxdmcp, + #:pkgname, "libxdmcp", + #:pkgver, "1.1.5", + #:pkgrel, 1, + #:pkgdesc, "X display manager control protocol library", + #:arch, [#:x86-64], + #:license, "MIT", + #:url, "https://xorg.freedesktop.org/", + #:depends, ["musl"], + #:makedepends, ["xorgproto"], + #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXdmcp-1.1.5.tar.xz"], + #:sha256sums, ["d8a5222828c3adab70adf69a5583f1d32eb5ece04304f7f8392b6a353aa2228c"], + + #:build, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc", + "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"), + string-append("PKG_CONFIG_SYSROOT_DIR=", root), + "libXdmcp-1.1.5/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", "--disable-docs") + run("make") + }, + #:check, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("make", "-C", "test", "Array") + run(string-append(root, "/lib/ld-musl-x86_64.so.1"), "--library-path", ".libs", "test/.libs/Array") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("find", pkgdir(), "-name", "*.la", "-delete") + run("install", "-Dm644", "libXdmcp-1.1.5/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxdmcp/COPYING")) + }) diff --git a/util-macros/PKGBUILD.vile b/util-macros/PKGBUILD.vile new file mode 100644 index 0000000..c3747bc --- /dev/null +++ b/util-macros/PKGBUILD.vile @@ -0,0 +1,22 @@ +defpkgbuild(util-macros, + #:pkgname, "util-macros", + #:pkgver, "1.20.1", + #:pkgrel, 1, + #:pkgdesc, "X.Org Autoconf macros", + #:arch, [#:any], + #:license, "MIT", + #:url, "https://xorg.freedesktop.org/", + #:source, ["https://xorg.freedesktop.org/archive/individual/util/util-macros-1.20.1.tar.xz"], + #:sha256sums, ["0b308f62dce78ac0f4d9de6888234bf170f276b64ac7c96e99779bb4319bcef5"], + + #:build, fn() { + run("util-macros-1.20.1/configure", "--prefix=/usr") + run("make") + }, + #:check, fn() { + run("test", "-s", "xorg-macros.m4") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("install", "-Dm644", "util-macros-1.20.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/util-macros/COPYING")) + }) diff --git a/xcb-proto/PKGBUILD.vile b/xcb-proto/PKGBUILD.vile new file mode 100644 index 0000000..e3f29d9 --- /dev/null +++ b/xcb-proto/PKGBUILD.vile @@ -0,0 +1,22 @@ +defpkgbuild(xcb-proto, + #:pkgname, "xcb-proto", + #:pkgver, "1.17.0", + #:pkgrel, 1, + #:pkgdesc, "XCB protocol XML and host-side generator modules", + #:arch, [#:any], + #:license, "MIT", + #:url, "https://xcb.freedesktop.org/", + #:source, ["https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.17.0.tar.xz"], + #:sha256sums, ["2c1bacd2110f4799f74de6ebb714b94cf6f80fb112316b1219480fd22562148c"], + + #:build, fn() { + run("env", "am_cv_python_pythondir=/usr/share/xcbgen-python", "xcb-proto-1.17.0/configure", "--prefix=/usr") + run("make") + }, + #:check, fn() { + run("grep", "-F", "/usr/share/xcbgen-python", "xcb-proto.pc") + }, + #:package, fn() { + run("make", "install", "am__py_compile=:", string-append("DESTDIR=", pkgdir())) + run("install", "-Dm644", "xcb-proto-1.17.0/COPYING", string-append(pkgdir(), "/usr/share/licenses/xcb-proto/COPYING")) + }) diff --git a/xorgproto/PKGBUILD.vile b/xorgproto/PKGBUILD.vile new file mode 100644 index 0000000..264281d --- /dev/null +++ b/xorgproto/PKGBUILD.vile @@ -0,0 +1,32 @@ +defpkgbuild(xorgproto, + #:pkgname, "xorgproto", + #:pkgver, "2024.1", + #:pkgrel, 1, + #:pkgdesc, "X11 protocol headers and pkg-config definitions", + #:arch, [#:any], + #:license, "BSD-2-Clause AND MIT AND X11", + #:url, "https://xorg.freedesktop.org/", + #:makedepends, ["musl"], + #:source, ["https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2024.1.tar.gz"], + #:sha256sums, ["4f6b9b4faf91e5df8265b71843a91fc73dc895be6210c84117a996545df296ce"], + + #:build, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc", + "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"), + string-append("PKG_CONFIG_SYSROOT_DIR=", root), + "xorgproto-2024.1/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", "--enable-legacy", "--disable-specs") + run("make") + }, + #:check, fn() { + run("test", "-s", "xproto.pc") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + ; The owning libraries install the maintained versions of these legacy headers. + run("rm", "-f", string-append(pkgdir(), "/usr/include/X11/extensions/vldXvMC.h"), + string-append(pkgdir(), "/usr/include/X11/extensions/XKBgeom.h")) + licenses := string-append(pkgdir(), "/usr/share/licenses/xorgproto") + run("mkdir", "-p", licenses) + for-each(fn(file) { run("install", "-m644", file, licenses) }, glob("xorgproto-2024.1/COPYING-*")) + }) diff --git a/xtrans/PKGBUILD.vile b/xtrans/PKGBUILD.vile new file mode 100644 index 0000000..6bc8f63 --- /dev/null +++ b/xtrans/PKGBUILD.vile @@ -0,0 +1,27 @@ +defpkgbuild(xtrans, + #:pkgname, "xtrans", + #:pkgver, "1.5.2", + #:pkgrel, 1, + #:pkgdesc, "X.Org transport implementation headers", + #:arch, [#:any], + #:license, "MIT", + #:url, "https://xorg.freedesktop.org/", + #:makedepends, ["musl"], + #:source, ["https://xorg.freedesktop.org/archive/individual/lib/xtrans-1.5.2.tar.xz"], + #:sha256sums, ["5c5cbfe34764a9131d048f03c31c19e57fb4c682d67713eab6a65541b4dff86c"], + + #:build, fn() { + root := get-environment-variable("VPAC_MAKEPKG_ROOT") + run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc", + "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"), + string-append("PKG_CONFIG_SYSROOT_DIR=", root), + "xtrans-1.5.2/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", "--disable-docs") + run("make") + }, + #:check, fn() { + run("test", "-s", "xtrans.pc") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("install", "-Dm644", "xtrans-1.5.2/COPYING", string-append(pkgdir(), "/usr/share/licenses/xtrans/COPYING")) + }) -- 2.56.1