Files
hakurei/internal/rosa/package/lua/package.az
T
cat 7193656b6a
Test / Create distribution (push) Successful in 54s
Test / Sandbox (push) Successful in 2m59s
Test / Hakurei (push) Successful in 4m49s
Test / Sandbox (race detector) (push) Successful in 5m50s
Test / Hakurei (race detector) (push) Successful in 7m11s
Test / ShareFS (push) Successful in 7m32s
Test / Flake checks (push) Successful in 1m10s
internal/rosa: improve helper bindings
This uses more intuitive names for some arguments and inverts their default value. Slices and nil-capable strings replace skip arguments.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-10 21:55:47 +09:00

37 lines
893 B
Go

package lua {
description = "the programming language lua";
website = "https://www.lua.org/home.html";
anitya = 1847;
version# = "5.5.1";
source = remoteTar {
url = "https://www.lua.org/ftp/lua-"+version+".tar.gz";
compress = gzip;
checksum = "8KCnY3UBf_oRuVhs7gc2pa18favYMzcMsjgeOOWjbbR9Y6W4qvm4gt1A-iMlXYBw";
};
patches = [ "conf-prefix.patch" ];
files = {
"lua.pc";
};
enterSource = true;
writable = true;
chmod = true;
exec = make {
chdir = false;
configure = nil;
make = [ "CC='clang -fPIC'", "all" ];
check = [ "test" ];
install = `
make INSTALL_TOP=/work/system install
mkdir /work/system/lib/pkgconfig
sed \
-e "s|@MAJOR_VER@|$(cc -P -E -include src/lua.h - <<< LUA_VERSION_MAJOR_N | tail -n 1)|g" \
-e "s|@MINOR_VER@|$(cc -P -E -include src/lua.h - <<< LUA_VERSION_MINOR_N | tail -n 1)|g" \
../lua.pc > /work/system/lib/pkgconfig/lua.pc
`;
};
}