From 6ba496ced431c0201c1b87ea3c83df2e4ef124c3 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 00:17:35 +0100 Subject: [PATCH] Build the X session manager and PCI access libraries --- libpciaccess/PKGBUILD.vile | 25 +++++++++++++++++++++++++ libsm/PKGBUILD.vile | 27 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 libpciaccess/PKGBUILD.vile create mode 100644 libsm/PKGBUILD.vile diff --git a/libpciaccess/PKGBUILD.vile b/libpciaccess/PKGBUILD.vile new file mode 100644 index 0000000..ae21c01 --- /dev/null +++ b/libpciaccess/PKGBUILD.vile @@ -0,0 +1,25 @@ +defpkgbuild(libpciaccess, + #:pkgname, "libpciaccess", + #:pkgver, "0.18.1", + #:pkgrel, 1, + #:pkgdesc, "X11 PCI access library", + #:arch, [#:x86-64, #:aarch64], + #:license, "X11", + #:url, "https://www.x.org/", + #:depends, ["musl", "zlib", "hwdata-pci"], + #:makedepends, ["linux-headers"], + #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libpciaccess-0.18.1.tar.xz"], + #:sha256sums, ["4af43444b38adb5545d0ed1c2ce46d9608cc47b31c2387fc5181656765a6fa76"], + + #:build, fn() { + run("vinix-meson", "libpciaccess-0.18.1", "build", "-Dzlib=enabled") + run("meson", "compile", "-C", "build", "-j2") + }, + #:check, fn() { + run("readelf", "-d", "build/src/libpciaccess.so") + }, + #:package, fn() { + run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir()) + run("install", "-Dm644", "libpciaccess-0.18.1/COPYING", + string-append(pkgdir(), "/usr/share/licenses/libpciaccess/COPYING")) + }) diff --git a/libsm/PKGBUILD.vile b/libsm/PKGBUILD.vile new file mode 100644 index 0000000..1036a2a --- /dev/null +++ b/libsm/PKGBUILD.vile @@ -0,0 +1,27 @@ +defpkgbuild(libsm, + #:pkgname, "libsm", + #:pkgver, "1.2.4", + #:pkgrel, 1, + #:pkgdesc, "X11 Session Management library", + #:arch, [#:x86-64, #:aarch64], + #:license, "MIT", + #:url, "https://www.x.org/", + #:depends, ["libice", "libuuid"], + #:makedepends, ["xorgproto", "xtrans"], + #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libSM-1.2.4.tar.xz"], + #:sha256sums, ["fdcbe51e4d1276b1183da77a8a4e74a137ca203e0bcfb20972dd5f3347e97b84"], + + #:build, fn() { + run("vinix-configure", "libSM-1.2.4/configure", "--with-libuuid", "--disable-docs") + run("make") + }, + #:check, fn() { + run("test", "-s", "src/.libs/libSM.so") + run("readelf", "-d", "src/.libs/libSM.so") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("find", pkgdir(), "-name", "*.la", "-delete") + run("install", "-Dm644", "libSM-1.2.4/COPYING", + string-append(pkgdir(), "/usr/share/licenses/libsm/COPYING")) + }) -- 2.56.1