1#!/bin/sh -ue
2NAME=busybox
3VERSION=1.36.1
4RELEASE=1
5SOURCE="https://busybox.net/downloads/busybox-${VERSION}.tar.bz2"
6
7build(){
8 sed -i 's/gcc/clang -static/g' Makefile
9 gmake PREFIX="$PREFIX" DESTDIR="$PKG" defconfig
10 sed -i 's#GNU/Linux#Serious/Linux#g' `find . -name .config -type f`
11 gmake PREFIX="$PREFIX" DESTDIR="$PKG" CFLAGS='-static' LDFLAGS='-static'
12 gmake PREFIX="$PREFIX" DESTDIR="$PKG" install
13
14 # i dont know why busybox does this but sure ig
15 mkdir -p $PKG/$PREFIX/
16 cp -r ./_install/* $PKG/$PREFIX/.
17}
18
19. ${0%/*}/../../libsh/libdmake.sh