appdwarf/apps/mkmusl

15 lines
361 B
Plaintext
Raw Normal View History

#!/bin/sh
2022-03-28 16:32:45 +00:00
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
2022-06-27 00:53:01 +00:00
DIR=/tmp/appdwarf/musl
mkdir $DIR
2022-03-28 16:32:45 +00:00
curl http://musl.cc/x86_64-linux-musl-native.tgz | tar xz -C$DIR
2022-06-27 00:53:01 +00:00
mv $DIR/x86_64-linux-musl-native/* $DIR
ln -s gcc $DIR/bin/cc
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
sed -i '4d;3a exec "$@"' $DIR/AppRun
2022-03-28 16:32:45 +00:00
2022-06-27 00:53:01 +00:00
appdwarf $DIR "$@"
mv $DIR.sh musl
rm -rf $DIR