diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-07-31 17:03:02 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-07-31 17:03:02 +0900 |
| commit | 599a761b273b738b1f89f09fa03aaf18bbb78d0d (patch) | |
| tree | 9a18a61a6faf26296c535f95ec223f44610fe614 /internal/rosa/package/lua/package.az | |
| parent | b7aa91f08fc7058c24a207f8cf63ce0ff7b036ff (diff) | |
internal/rosa/package: lua
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/lua/package.az')
| -rw-r--r-- | internal/rosa/package/lua/package.az | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/internal/rosa/package/lua/package.az b/internal/rosa/package/lua/package.az new file mode 100644 index 00000000..2d61eee5 --- /dev/null +++ b/internal/rosa/package/lua/package.az @@ -0,0 +1,36 @@ +package lua { + description = "the programming language lua"; + website = "https://www.lua.org/home.html"; + anitya = 1847; + + version# = "5.5.0"; + source = remoteTar { + url = "https://www.lua.org/ftp/lua-"+version+".tar.gz"; + compress = gzip; + checksum = "YPyC6868M6mB1p0ARV1WJy9EmFc0ERBoueqJnMvJ_YXjSSvkVtO94C01n6pnd8Te"; + }; + patches = [ "conf-prefix.patch" ]; + + files = { + "lua.pc"; + }; + + enterSource = true; + writable = true; + chmod = true; + + exec = make { + inPlace = true; + skipConfigure = true; + 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 +`; + }; +} |
