133.1. stfl-0.24
Curses-based structured terminal forms library
0.24-1 · LGPL-3.0-or-later · 0.1 SBU · 258.3 KiB, 7 files · 41_system, 733 of 1047 · ports/core/toolkits/stfl
Homepage: https://github.com/newsboat/stfl
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/toolkits.txt:
The forms library newsboat draws through. Upstream died in 2015; this is newsboat's own fork, which is the copy that still compiles.
Depends on: ncurses.
Required by (1): newsboat.
Sources: stfl-0.24.tar.gz (43.5 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install stfl'
build.sh:
mkdir -p compat/ncursesw
ln -sf /usr/include/ncurses.h compat/ncursesw/ncurses.h
_cflags="$CFLAGS -I. -I$PWD/compat -Wall -D_GNU_SOURCE -D_XOPEN_SOURCE_EXTENDED -fPIC"
make FOUND_SWIG=0 FOUND_SPL=0 CFLAGS="$_cflags" LDLIBS="-Wl,-z,now,-z,pack-relative-relocs -lncursesw"
make FOUND_SWIG=0 FOUND_SPL=0 CFLAGS="$_cflags" LDLIBS="-Wl,-z,now,-z,pack-relative-relocs -lncursesw" \
prefix=/usr libdir=lib DESTDIR=$PKG install
ln -sf libstfl.so.$version $PKG/usr/lib/libstfl.so.0
Libraries: libstfl.a, libstfl.so.
Directories: /usr/share/licenses/stfl.