| git.druid.rocks | index | druid520 | ports | ports/ | build-tools/ | shinobi/ | add.sh |
ports/build-tools/shinobi/add.sh
set -e
git clone --depth 1 https://codeberg.org/derivelinux/shinobi.git shinobi
cd shinobi
# SHIN_WITH_GNU=1 (its own build.ninja default): this is about whether
# shin itself can PARSE gnu-make-flavored syntax found in real, upstream
# Makefiles it's pointed at -- unrelated to shinobi's own status as
# non-GNU software (public domain, its own implementation) -- left on
# so it's actually useful against the real-world Makefiles this tree
# still has (curl, dropbear, shadow, etc all still use GNU-flavored
# make constructs upstream).
CC="${CC:-cc}" CFLAGS="$CFLAGS -std=c99 -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -Isrc -Ibackends -DSHIN_WITH_GNU=1" LDFLAGS="$LDFLAGS" samu
PREFIX=$MP_PREFIX samu install
samu -t clean || true