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")) })