# libSM 1.2.6 — X11 Session Management library (SM.pc, Requires: ice). La usa la cadena de sesión de
# Plasma (ksmserver/plasma-workspace) y Qt's QSessionManager. Autotools sobre libICE. libuuid opcional
# (util-linux) para los IDs de sesión. musl.
name    = "libSM"
version = "1.2.6"

[source]
tarball = "https://www.x.org/releases/individual/lib/libSM-1.2.6.tar.xz"
sha256  = "be7c0abdb15cbfd29ac62573c1c82e877f9d4047ad15321e7ea97d1e43d835be"

[build]
compiler    = "zig-cc"
target      = "x86_64-linux-musl"
link        = "dynamic"
zig_version = "0.13.0"

[build.phases]
configure = '''
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig \
./configure --prefix=/usr --disable-static --enable-shared --with-libuuid
'''
compile   = "make -j\"$(nproc)\""
install   = "make install DESTDIR=/out"

[deps]
build = ["pkgconf", "python3", "util-macros", "xorgproto", "xtrans", "libICE", "util-linux"]
