PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="https://gitlab.com/procps-ng/procps/-/archive/v3.3.15/procps-v${PKGVER}.tar.gz" MAKEDEPENDS=( "ncurses-*:::*.so *.so.* *.h" ) FLXLIBDIR=lib # ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes: without that, try to call rpl_malloc/realloc funcs # NCURSES_LIBS: otherwise, we try to link with -lncurses -ltinfo # --disable-modern-top: stay like to good old top, weith no colors, no cpu gauges, and a lot more info function do_config { mkdir -p m4 && \ ./autogen.sh && \ CFLAGS="$GCC_OPT_SMALL $GCC_ARCH_SMALL $GCC_CPU_SMALL" \ NCURSES_LIBS='-lncurses' \ ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ./configure --prefix=/usr --libexecdir=/usr/bin --bindir=/bin --build=$FLXHOST --host=$FLXTARG --disable-pidof --disable-kill --disable-nls --disable-modern-top --disable-numa } function do_compile_only { $FLXMAKE CC="$CC" LD="$LD" RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" CPPFLAGS="" } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR/usr/ libdir=lib/ usr/man1='$(DESTDIR)/man/man1/' man5='$(DESTDIR)/man/man5/' man8='$(DESTDIR)/man/man8/' lib64=$FLXLIBDIR mkdir -p $ROOTDIR/bin mv $ROOTDIR/usr/bin/ps $ROOTDIR/bin/ps mv $ROOTDIR/usr/lib $ROOTDIR/lib set_default_perm $ROOTDIR }