opkg

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

Commit: 8d4f49f7cb4a84c2e7a13d8431f07ec3ad8df3d6
Parent: b26ec0fc6ed46ddb297cb057ab7e2cc9ac627b90
Author: Randy Palamar
Date:   Wed,  4 Oct 2023 22:18:58 -0600

add sfeed from oasis (bumped to 1.9)

Diffstat:
M.gitmodules | 3+++
Mpkg/net/gen.lua | 1+
Apkg/net/sfeed/gen.lua | 44++++++++++++++++++++++++++++++++++++++++++++
Apkg/net/sfeed/src | 1+
Apkg/net/sfeed/ver | 1+
Msets.lua | 1+
6 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -45,6 +45,9 @@ [submodule "pkg/libs/zlib/src"] path = pkg/libs/zlib/src url = https://github.com/madler/zlib.git +[submodule "pkg/net/sfeed/src"] + path = pkg/net/sfeed/src + url = git://git.codemadness.org/sfeed [submodule "pkg/sys/sbase/src"] path = pkg/sys/sbase/src url = git://git.suckless.org/sbase diff --git a/pkg/net/gen.lua b/pkg/net/gen.lua @@ -1 +1,2 @@ subgen('curl') +subgen('sfeed') diff --git a/pkg/net/sfeed/gen.lua b/pkg/net/sfeed/gen.lua @@ -0,0 +1,44 @@ +cflags{ + '-std=c99', '-Wall', '-Wpedantic', + '-D _XOPEN_SOURCE=700', + [[-D 'SFEED_THEME="themes/mono.h"']], + '-isystem $builddir/pkg/libs/netbsd-curses/include', +} + +lib('libutil.a', {'util.c', 'xml.c'}) + +local tools = { + 'sfeed', + 'sfeed_opml_import', + 'sfeed_plain', + '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/libs/netbsd-curses/libcurses.a.d', +}, 'pkg/libs/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') diff --git a/pkg/net/sfeed/src b/pkg/net/sfeed/src @@ -0,0 +1 @@ +Subproject commit c43e677d80f5eae1e05bcb71d88008fb8ded8cab diff --git a/pkg/net/sfeed/ver b/pkg/net/sfeed/ver @@ -0,0 +1 @@ +1.9 r0 diff --git a/sets.lua b/sets.lua @@ -13,6 +13,7 @@ S.bin = { 'pwgen', 'samurai', 'sbase', + 'sfeed', 'skeleton', 'spm', 'strace',