me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Bootstrap X11 protocol inputs and client authorization libraries

diviocity committed 6 days ago · e812945082e009b65c96f90b4e01db87d21b3480 View patch
Unverified signature 6 files changed +165 -0
libxau/PKGBUILD.vile new file +31 -0

@@ -0,0 +1,31 @@

1+defpkgbuild(libxau,

2+ #:pkgname, "libxau",

3+ #:pkgver, "1.0.11",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X11 authorization library",

6+ #:arch, [#:x86-64],

7+ #:license, "MIT",

8+ #:url, "https://xorg.freedesktop.org/",

9+ #:depends, ["musl"],

10+ #:makedepends, ["xorgproto"],

11+ #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXau-1.0.11.tar.xz"],

12+ #:sha256sums, ["f3fa3282f5570c3f6bd620244438dbfbdd580fc80f02f549587a0f8ab329bbeb"],

13+

14+ #:build, fn() {

15+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

16+ run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc",

17+ "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"),

18+ string-append("PKG_CONFIG_SYSROOT_DIR=", root),

19+ "libXau-1.0.11/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr")

20+ run("make")

21+ },

22+ #:check, fn() {

23+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

24+ run("make", "Autest")

25+ run(string-append(root, "/lib/ld-musl-x86_64.so.1"), "--library-path", ".libs", ".libs/Autest")

26+ },

27+ #:package, fn() {

28+ run("make", "install", string-append("DESTDIR=", pkgdir()))

29+ run("find", pkgdir(), "-name", "*.la", "-delete")

30+ run("install", "-Dm644", "libXau-1.0.11/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxau/COPYING"))

31+ })

libxdmcp/PKGBUILD.vile new file +31 -0

@@ -0,0 +1,31 @@

1+defpkgbuild(libxdmcp,

2+ #:pkgname, "libxdmcp",

3+ #:pkgver, "1.1.5",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X display manager control protocol library",

6+ #:arch, [#:x86-64],

7+ #:license, "MIT",

8+ #:url, "https://xorg.freedesktop.org/",

9+ #:depends, ["musl"],

10+ #:makedepends, ["xorgproto"],

11+ #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libXdmcp-1.1.5.tar.xz"],

12+ #:sha256sums, ["d8a5222828c3adab70adf69a5583f1d32eb5ece04304f7f8392b6a353aa2228c"],

13+

14+ #:build, fn() {

15+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

16+ run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc",

17+ "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"),

18+ string-append("PKG_CONFIG_SYSROOT_DIR=", root),

19+ "libXdmcp-1.1.5/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", "--disable-docs")

20+ run("make")

21+ },

22+ #:check, fn() {

23+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

24+ run("make", "-C", "test", "Array")

25+ run(string-append(root, "/lib/ld-musl-x86_64.so.1"), "--library-path", ".libs", "test/.libs/Array")

26+ },

27+ #:package, fn() {

28+ run("make", "install", string-append("DESTDIR=", pkgdir()))

29+ run("find", pkgdir(), "-name", "*.la", "-delete")

30+ run("install", "-Dm644", "libXdmcp-1.1.5/COPYING", string-append(pkgdir(), "/usr/share/licenses/libxdmcp/COPYING"))

31+ })

util-macros/PKGBUILD.vile new file +22 -0

@@ -0,0 +1,22 @@

1+defpkgbuild(util-macros,

2+ #:pkgname, "util-macros",

3+ #:pkgver, "1.20.1",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X.Org Autoconf macros",

6+ #:arch, [#:any],

7+ #:license, "MIT",

8+ #:url, "https://xorg.freedesktop.org/",

9+ #:source, ["https://xorg.freedesktop.org/archive/individual/util/util-macros-1.20.1.tar.xz"],

10+ #:sha256sums, ["0b308f62dce78ac0f4d9de6888234bf170f276b64ac7c96e99779bb4319bcef5"],

11+

12+ #:build, fn() {

13+ run("util-macros-1.20.1/configure", "--prefix=/usr")

14+ run("make")

15+ },

16+ #:check, fn() {

17+ run("test", "-s", "xorg-macros.m4")

18+ },

19+ #:package, fn() {

20+ run("make", "install", string-append("DESTDIR=", pkgdir()))

21+ run("install", "-Dm644", "util-macros-1.20.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/util-macros/COPYING"))

22+ })

xcb-proto/PKGBUILD.vile new file +22 -0

@@ -0,0 +1,22 @@

1+defpkgbuild(xcb-proto,

2+ #:pkgname, "xcb-proto",

3+ #:pkgver, "1.17.0",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "XCB protocol XML and host-side generator modules",

6+ #:arch, [#:any],

7+ #:license, "MIT",

8+ #:url, "https://xcb.freedesktop.org/",

9+ #:source, ["https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.17.0.tar.xz"],

10+ #:sha256sums, ["2c1bacd2110f4799f74de6ebb714b94cf6f80fb112316b1219480fd22562148c"],

11+

12+ #:build, fn() {

13+ run("env", "am_cv_python_pythondir=/usr/share/xcbgen-python", "xcb-proto-1.17.0/configure", "--prefix=/usr")

14+ run("make")

15+ },

16+ #:check, fn() {

17+ run("grep", "-F", "/usr/share/xcbgen-python", "xcb-proto.pc")

18+ },

19+ #:package, fn() {

20+ run("make", "install", "am__py_compile=:", string-append("DESTDIR=", pkgdir()))

21+ run("install", "-Dm644", "xcb-proto-1.17.0/COPYING", string-append(pkgdir(), "/usr/share/licenses/xcb-proto/COPYING"))

22+ })

xorgproto/PKGBUILD.vile new file +32 -0

@@ -0,0 +1,32 @@

1+defpkgbuild(xorgproto,

2+ #:pkgname, "xorgproto",

3+ #:pkgver, "2024.1",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X11 protocol headers and pkg-config definitions",

6+ #:arch, [#:any],

7+ #:license, "BSD-2-Clause AND MIT AND X11",

8+ #:url, "https://xorg.freedesktop.org/",

9+ #:makedepends, ["musl"],

10+ #:source, ["https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2024.1.tar.gz"],

11+ #:sha256sums, ["4f6b9b4faf91e5df8265b71843a91fc73dc895be6210c84117a996545df296ce"],

12+

13+ #:build, fn() {

14+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

15+ run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc",

16+ "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"),

17+ string-append("PKG_CONFIG_SYSROOT_DIR=", root),

18+ "xorgproto-2024.1/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", "--enable-legacy", "--disable-specs")

19+ run("make")

20+ },

21+ #:check, fn() {

22+ run("test", "-s", "xproto.pc")

23+ },

24+ #:package, fn() {

25+ run("make", "install", string-append("DESTDIR=", pkgdir()))

26+ ; The owning libraries install the maintained versions of these legacy headers.

27+ run("rm", "-f", string-append(pkgdir(), "/usr/include/X11/extensions/vldXvMC.h"),

28+ string-append(pkgdir(), "/usr/include/X11/extensions/XKBgeom.h"))

29+ licenses := string-append(pkgdir(), "/usr/share/licenses/xorgproto")

30+ run("mkdir", "-p", licenses)

31+ for-each(fn(file) { run("install", "-m644", file, licenses) }, glob("xorgproto-2024.1/COPYING-*"))

32+ })

xtrans/PKGBUILD.vile new file +27 -0

@@ -0,0 +1,27 @@

1+defpkgbuild(xtrans,

2+ #:pkgname, "xtrans",

3+ #:pkgver, "1.5.2",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X.Org transport implementation headers",

6+ #:arch, [#:any],

7+ #:license, "MIT",

8+ #:url, "https://xorg.freedesktop.org/",

9+ #:makedepends, ["musl"],

10+ #:source, ["https://xorg.freedesktop.org/archive/individual/lib/xtrans-1.5.2.tar.xz"],

11+ #:sha256sums, ["5c5cbfe34764a9131d048f03c31c19e57fb4c682d67713eab6a65541b4dff86c"],

12+

13+ #:build, fn() {

14+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")

15+ run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "CC=vinix-cc",

16+ "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig:", root, "/usr/share/pkgconfig"),

17+ string-append("PKG_CONFIG_SYSROOT_DIR=", root),

18+ "xtrans-1.5.2/configure", "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", "--disable-docs")

19+ run("make")

20+ },

21+ #:check, fn() {

22+ run("test", "-s", "xtrans.pc")

23+ },

24+ #:package, fn() {

25+ run("make", "install", string-append("DESTDIR=", pkgdir()))

26+ run("install", "-Dm644", "xtrans-1.5.2/COPYING", string-append(pkgdir(), "/usr/share/licenses/xtrans/COPYING"))

27+ })