busybox (1290B)
1 {% extends "base" %} 2 {%- block body %} 3 #+{{pkg_install_name("musl-cross-make")}} 4 #+{{pkg_install_name("gnu-make:bootstrap")}} 5 #+{{pkg_install_name("busybox:bootstrap")}} 6 #@git:aa4d303a3139107919f73cece4eaf85a7dc75db6:busybox 7 #@sha256:{{files["busybox.config.1_12_0-8342-gaa4d303a3"]}}:busybox/.config 8 9 : ${JOBS:=1} 10 11 export CC="$pthbs_build_environment/command/{{triplet}}-gcc" 12 export CFLAGS="-D_GNU_SOURCE" 13 export LDFLAGS="-static" 14 15 cd busybox 16 make V=1 CROSS_COMPILE={{triplet}}- LDFLAGS=-static HOSTLDFLAGS=-static \ 17 HOSTCC="$CC -static" CC="$CC -static" HOSTCFLAGS=-D_GNU_SOURCE -j$JOBS 18 19 mkdir -p "$pthbs_destdir{{versions}}/$pthbs_package/command" 20 cp -a busybox "$pthbs_destdir{{versions}}/$pthbs_package/command/" 21 cd "$pthbs_destdir{{versions}}/$pthbs_package" 22 echo false | ./command/busybox --list >/dev/null # test if it works 23 ./command/busybox --list | awk ' 24 /^(cmp|diff)$/ {next} # provided by diffutils 25 /^(login)$/ {next} # provided by logincaps 26 /^(reset|clear)$/ {next} # provided by netbsd-curses 27 /^(chvt|deallocvt|fgconsole|kbd_mode|openvt|setfont|setkeycodes|showkey)$/ {next} # provided by kbd 28 { print "./command/busybox\t./command/" $0 } 29 END { print "./command/busybox\t./command/busybox" } 30 ' >.install-links.new 31 mv .install-links.new .install-links 32 {% endblock %}