opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

gen.lua (904B)


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