#!/bin/sh PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH DIR=/tmp/appdwarf/musl mkdir $DIR curl http://musl.cc/x86_64-linux-musl-native.tgz | tar xz -C$DIR 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 appdwarf $DIR "$@" mv $DIR.sh musl rm -rf $DIR