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


  1. cflags{
  2. '-std=c99', '-Wall', '-Wpedantic',
  3. '-D _XOPEN_SOURCE=700',
  4. [[-D 'SFEED_THEME="themes/mono.h"']],
  5. '-isystem $builddir/pkg/netbsd-curses/include',
  6. }
  7. lib('libutil.a', {'util.c', 'xml.c'})
  8. local tools = {
  9. 'sfeed',
  10. 'sfeed_json',
  11. 'sfeed_opml_import',
  12. 'sfeed_plain',
  13. 'sfeed_web',
  14. 'sfeed_xmlenc',
  15. }
  16. for _, tool in ipairs(tools) do
  17. exe(tool, {tool..'.c', 'libutil.a'})
  18. file('bin/'..tool, '755', '$outdir/'..tool)
  19. man{tool..'.1'}
  20. end
  21. exe('sfeed_curses', {
  22. 'sfeed_curses.c',
  23. 'libutil.a',
  24. '$builddir/pkg/netbsd-curses/libcurses.a.d',
  25. }, 'pkg/netbsd-curses/headers')
  26. file('bin/sfeed_curses', '755', '$outdir/sfeed_curses')
  27. man{'sfeed_curses.1'}
  28. local scripts = {
  29. 'sfeed_content',
  30. 'sfeed_markread',
  31. 'sfeed_opml_export',
  32. 'sfeed_update',
  33. }
  34. for _, script in ipairs(scripts) do
  35. file('bin/'..script, '755', '$srcdir/'..script)
  36. man{script..'.1'}
  37. end
  38. man{'sfeedrc.5'}
  39. fetch 'git'