logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

gen.lua (970B)


  1. cflags{
  2. '-std=c99',
  3. '-D _GNU_SOURCE',
  4. '-include $dir/config.h',
  5. '-I $srcdir/ext/include',
  6. '-isystem $builddir/pkg/lua/include',
  7. }
  8. pkg.deps = {
  9. 'pkg/lua/headers',
  10. }
  11. build('sed', '$outdir/version.lua', '$srcdir/lib/posix/version.lua.in', {
  12. expr={
  13. '-e s,@package@,luaposix,',
  14. '-e s,@version2,36.2.1,',
  15. },
  16. })
  17. lib('libluaposix.a', [[
  18. ext/posix/(
  19. ctype.c
  20. dirent.c
  21. errno.c
  22. fcntl.c
  23. fnmatch.c
  24. glob.c
  25. grp.c
  26. libgen.c
  27. poll.c
  28. pwd.c
  29. sched.c
  30. signal.c
  31. stdio.c
  32. stdlib.c
  33. sys/(
  34. msg.c
  35. resource.c
  36. socket.c
  37. stat.c
  38. statvfs.c
  39. time.c
  40. times.c
  41. utsname.c
  42. wait.c
  43. )
  44. syslog.c
  45. termio.c
  46. time.c
  47. unistd.c
  48. utime.c
  49. )
  50. ]])
  51. local files = {
  52. 'init.lua',
  53. '_base.lua',
  54. '_bitwise.lua',
  55. '_strict.lua',
  56. 'compat.lua',
  57. 'sys.lua',
  58. 'util.lua',
  59. }
  60. for _, f in ipairs(files) do
  61. file('share/lua/5.4/posix/'..f, '644', '$srcdir/lib/posix/'..f)
  62. end
  63. file('share/lua/5.4/posix/version.lua', '644', '$outdir/version.lua')
  64. fetch 'git'