Build the X session manager and PCI access libraries
@@ -0,0 +1,25 @@
1+defpkgbuild(libpciaccess,
2+ #:pkgname, "libpciaccess",
3+ #:pkgver, "0.18.1",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "X11 PCI access library",
6+ #:arch, [#:x86-64, #:aarch64],
7+ #:license, "X11",
8+ #:url, "https://www.x.org/",
9+ #:depends, ["musl", "zlib", "hwdata-pci"],
10+ #:makedepends, ["linux-headers"],
11+ #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libpciaccess-0.18.1.tar.xz"],
12+ #:sha256sums, ["4af43444b38adb5545d0ed1c2ce46d9608cc47b31c2387fc5181656765a6fa76"],
13+
14+ #:build, fn() {
15+ run("vinix-meson", "libpciaccess-0.18.1", "build", "-Dzlib=enabled")
16+ run("meson", "compile", "-C", "build", "-j2")
17+ },
18+ #:check, fn() {
19+ run("readelf", "-d", "build/src/libpciaccess.so")
20+ },
21+ #:package, fn() {
22+ run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())
23+ run("install", "-Dm644", "libpciaccess-0.18.1/COPYING",
24+ string-append(pkgdir(), "/usr/share/licenses/libpciaccess/COPYING"))
25+ })
@@ -0,0 +1,27 @@
1+defpkgbuild(libsm,
2+ #:pkgname, "libsm",
3+ #:pkgver, "1.2.4",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "X11 Session Management library",
6+ #:arch, [#:x86-64, #:aarch64],
7+ #:license, "MIT",
8+ #:url, "https://www.x.org/",
9+ #:depends, ["libice", "libuuid"],
10+ #:makedepends, ["xorgproto", "xtrans"],
11+ #:source, ["https://xorg.freedesktop.org/archive/individual/lib/libSM-1.2.4.tar.xz"],
12+ #:sha256sums, ["fdcbe51e4d1276b1183da77a8a4e74a137ca203e0bcfb20972dd5f3347e97b84"],
13+
14+ #:build, fn() {
15+ run("vinix-configure", "libSM-1.2.4/configure", "--with-libuuid", "--disable-docs")
16+ run("make")
17+ },
18+ #:check, fn() {
19+ run("test", "-s", "src/.libs/libSM.so")
20+ run("readelf", "-d", "src/.libs/libSM.so")
21+ },
22+ #:package, fn() {
23+ run("make", "install", string-append("DESTDIR=", pkgdir()))
24+ run("find", pkgdir(), "-name", "*.la", "-delete")
25+ run("install", "-Dm644", "libSM-1.2.4/COPYING",
26+ string-append(pkgdir(), "/usr/share/licenses/libsm/COPYING"))
27+ })