mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-12 21:34:47 +02:00
04cad4374d
This was originally avoided because xargs in sbase did not have -0 and -P. The version currently included has support for both.
52 lines
990 B
Lua
52 lines
990 B
Lua
cflags{
|
|
'-std=c99', '-Wall', '-Wpedantic',
|
|
'-D _XOPEN_SOURCE=700',
|
|
[[-D 'SFEED_THEME="themes/mono.h"']],
|
|
'-isystem $builddir/pkg/netbsd-curses/include',
|
|
}
|
|
|
|
lib('libutil.a', {'util.c', 'xml.c'})
|
|
|
|
local tools = {
|
|
'sfeed',
|
|
'sfeed_atom',
|
|
'sfeed_frames',
|
|
'sfeed_gopher',
|
|
'sfeed_html',
|
|
'sfeed_json',
|
|
'sfeed_mbox',
|
|
'sfeed_opml_import',
|
|
'sfeed_plain',
|
|
'sfeed_twtxt',
|
|
'sfeed_web',
|
|
'sfeed_xmlenc',
|
|
}
|
|
for _, tool in ipairs(tools) do
|
|
exe(tool, {tool..'.c', 'libutil.a'})
|
|
file('bin/'..tool, '755', '$outdir/'..tool)
|
|
man{tool..'.1'}
|
|
end
|
|
|
|
exe('sfeed_curses', {
|
|
'sfeed_curses.c',
|
|
'libutil.a',
|
|
'$builddir/pkg/netbsd-curses/libcurses.a.d',
|
|
}, 'pkg/netbsd-curses/headers')
|
|
file('bin/sfeed_curses', '755', '$outdir/sfeed_curses')
|
|
man{'sfeed_curses.1'}
|
|
|
|
local scripts = {
|
|
'sfeed_content',
|
|
'sfeed_markread',
|
|
'sfeed_opml_export',
|
|
'sfeed_update',
|
|
}
|
|
for _, script in ipairs(scripts) do
|
|
file('bin/'..script, '755', '$srcdir/'..script)
|
|
man{script..'.1'}
|
|
end
|
|
|
|
man{'sfeedrc.5'}
|
|
|
|
fetch 'git'
|