morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus.git
Log | Files | Refs | Submodules | README | LICENSE

commit dc78d5d7c91bbab2fbf191e9a29e019546a7f1c4
parent bd3026cc3dea80d2b46ac60f5536ff62312fa5e1
Author: sin <sin@2f30.org>
Date:   Wed Mar  5 13:10:48 +0000

Convert sbase with inline building instructions

For packages in base, we will ignore make/autoconf.  We can just use
inlined build instructions in the mk recipe.

Diffstat:
pkgs/sbase | 22+++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/pkgs/sbase b/pkgs/sbase @@ -1,7 +1,23 @@ git="git://git.2f30.org/sbase" build: crossmusl + set -x cd src/sbase - make clean - make -j$nprocs CC=$CC LDFLAGS="$LDFLAGS" - make PREFIX="$root" install + for f in util/*.c; do + $CC -c $f -o "${f%%.c}.o" $CFLAGS + done + for f in util/*.o; do + ar -r -c util.a $f + done + ranlib util.a + for f in *.c; do + $CC -c $f $CFLAGS + done + for f in *.o; do + $CC -o "${f%.*}" $f util.a $LDFLAGS + done + mkdir -p "$root/share/man/man1" + for f in *.o; do + cp "${f%.*}" "$root/bin" + cp "${f%%.o}.1" "$root/share/man/man1" + done