# libsass 3.6.6 — compilador SCSS→CSS (C++); lo usa sassc, que a su vez compila los estilos de libadwaita.
# Makefile propio; BUILD=static + CXX=zig c++. Primer ladrillo C++ del stack GUI.
name    = "libsass"
version = "3.6.6"

[source]
tarball = "https://github.com/sass/libsass/archive/refs/tags/3.6.6.tar.gz"
sha256  = "11f0bb3709a4f20285507419d7618f3877a425c0131ea8df40fe6196129df15d"

[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "static"

[build.phases]
configure = "true"
compile   = "make -j4 BUILD=static CC='zig cc' CXX='zig c++' lib/libsass.a"
install   = "mkdir -p /out/usr/lib /out/usr/include && cp lib/libsass.a /out/usr/lib/ && cp -r include/* /out/usr/include/"

[deps]
build = ["make"]
