1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-25 23:48:34 +00:00
morpheus/pkgs/mksh
sin 5ffd49a86d We can build with dash too now
Also rename pkgs/arch-rootfs to pkgs/emul.

The create-bootable script still needs to be fixed
to work with dash.
2014-02-14 10:58:17 +00:00

25 lines
329 B
Plaintext

url=$mirror/mksh-R47.tar.gz
fetch() {
wget -c $url -O src/mksh-R47.tar.gz
}
unpack() {
cd src
[ -d mksh ] || tar xzf mksh-R47.tar.gz
cd -
}
build() {
cd src/mksh
CC=x86_64-linux-musl-gcc LDFLAGS+=-static sh Build.sh || return 1
cd -
}
install() {
cp src/mksh/mksh $root/bin
cd $root/bin
ln -sf /bin/mksh sh
cd -
}