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 (1049B)


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