me

/

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

Build X.Org authentication, transport and fences against the target SDK

diviocity committed 6 days ago · bcf11589caebb12f81ae9333e428c4981c045c65 View patch
Unverified signature 4 files changed +44 -28
libxau/PKGBUILD.vile +5 -11

@@ -1,28 +1,22 @@

11defpkgbuild(libxau,

22 #:pkgname, "libxau",

33 #:pkgver, "1.0.11",

4- #:pkgrel, 1,

4+ #:pkgrel, 2,

55 #:pkgdesc, "X11 authorization library",

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

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

77 #:license, "MIT",

88 #:url, "https://xorg.freedesktop.org/",

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

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

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

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

1211 #:sha256sums, ["f3fa3282f5570c3f6bd620244438dbfbdd580fc80f02f549587a0f8ab329bbeb"],

1312

1413 #: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")

14+ run("vinix-configure", "libXau-1.0.11/configure")

2015 run("make")

2116 },

2217 #:check, fn() {

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

2418 run("make", "Autest")

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

19+ run("vinix-run", "--library-path", ".libs", ".libs/Autest")

2620 },

2721 #:package, fn() {

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

libxdmcp/PKGBUILD.vile +5 -11

@@ -1,28 +1,22 @@

11defpkgbuild(libxdmcp,

22 #:pkgname, "libxdmcp",

33 #:pkgver, "1.1.5",

4- #:pkgrel, 1,

4+ #:pkgrel, 2,

55 #:pkgdesc, "X display manager control protocol library",

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

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

77 #:license, "MIT",

88 #:url, "https://xorg.freedesktop.org/",

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

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

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

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

1211 #:sha256sums, ["d8a5222828c3adab70adf69a5583f1d32eb5ece04304f7f8392b6a353aa2228c"],

1312

1413 #: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")

14+ run("vinix-configure", "libXdmcp-1.1.5/configure", "--disable-docs")

2015 run("make")

2116 },

2217 #:check, fn() {

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

2418 run("make", "-C", "test", "Array")

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

19+ run("vinix-run", "--library-path", ".libs", "test/.libs/Array")

2620 },

2721 #:package, fn() {

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

libxshmfence/PKGBUILD.vile new file +31 -0

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

1+defpkgbuild(libxshmfence,

2+ #:pkgname, "libxshmfence",

3+ #:pkgver, "1.3.2",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "X11 shared memory fences",

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

7+ #:license, "MIT",

8+ #:url, "https://www.x.org/",

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

10+ #:makedepends, ["linux-headers"],

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

12+ #:sha256sums, ["870df257bc40b126d91b5a8f1da6ca8a524555268c50b59c0acd1a27f361606f"],

13+

14+ #:prepare, fn() {

15+ ; Installed pkg-config files must use the consumer's sysroot.

16+ run("sed", "-i", "s/ @XPROTO_CFLAGS@//", "libxshmfence-1.3.2/xshmfence.pc.in")

17+ },

18+ #:build, fn() {

19+ run("vinix-configure", "libxshmfence-1.3.2/configure", "--enable-futex")

20+ run("make")

21+ },

22+ #:check, fn() {

23+ run("test", "-s", "src/.libs/libxshmfence.so")

24+ run("readelf", "-d", "src/.libs/libxshmfence.so")

25+ },

26+ #:package, fn() {

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

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

29+ run("install", "-Dm644", "libxshmfence-1.3.2/COPYING",

30+ string-append(pkgdir(), "/usr/share/licenses/libxshmfence/COPYING"))

31+ })

xtrans/PKGBUILD.vile +3 -6

@@ -1,21 +1,18 @@

11defpkgbuild(xtrans,

22 #:pkgname, "xtrans",

33 #:pkgver, "1.5.2",

4- #:pkgrel, 1,

4+ #:pkgrel, 2,

55 #:pkgdesc, "X.Org transport implementation headers",

66 #:arch, [#:any],

77 #:license, "MIT",

88 #:url, "https://xorg.freedesktop.org/",

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

910 #:makedepends, ["musl"],

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

1112 #:sha256sums, ["5c5cbfe34764a9131d048f03c31c19e57fb4c682d67713eab6a65541b4dff86c"],

1213

1314 #: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")

15+ run("vinix-configure", "xtrans-1.5.2/configure", "--disable-docs")

1916 run("make")

2017 },

2118 #:check, fn() {