PKGNAME=ly
PKGSEC=x11
BUILDDEP="zig"
PKGDEP="linux-pam xorg-server x11-lib brightnessctl"
PKGDES="Lightweight TUI display manager for Linux and BSD"
ABTYPE=self

# FIXME: i486, loongson3: zig is not available for these architectures.
# [CRIT]: Oops! RuntimeError: zig is required by `ly` but is not buildable on `loongson3` (FAIL_ARCH).
# FIXME: loongarch64, loongarch64_nosimd, ppc64el: zig translate-c stage fails during build.
# +- translate-c failure
# error: the following command terminated unexpectedly:
# /usr/bin/zig translate-c -lc --cache-dir .zig-cache --global-cache-dir zig-cache --listen=- -OReleaseFast -D TB_IMPL -D TB_OPT_ATTR_W=32 zig-cache/p/N-V-__8AAOEWBQDt5tNdIzIFY6n8DdZsCP-6MyLoNS20wgpA/termbox2.h  
FAIL_ARCH="!(amd64|arm64|riscv64)"
