diff --git a/build b/build new file mode 100755 index 0000000..567c858 --- /dev/null +++ b/build @@ -0,0 +1,15 @@ +#!/usr/bin/env sh + +# Install pkgxx dependancies +echo "> Installing Moonscript…" +luarocks-5.1 install moonscript || exit 1 +echo "> Installing lua-argparse…" +luarocks-5.1 install argparse || exit 1 +echo "> Installing lua-process" +luarocks-5.1 install process --from=http://mah0x211.github.io/rocks/ + +# FIXME: need moonscript AND build.zsh + +# FIXME: install pkgxx +# FIXME: configure pkgxx +# FIXME: DL yunoconfig diff --git a/install-and-chroot.sh b/install-and-chroot.sh index 99fe10b..3bb1028 100755 --- a/install-and-chroot.sh +++ b/install-and-chroot.sh @@ -13,11 +13,11 @@ fi # Install Alpine if ! test -d "$alpine_directory"; then - sudo sh ./$alpine_install -p "build-base git zsh lua-filesystem luarocks lua-toml" || exit 1 + sudo sh ./$alpine_install -p build-base -p git -p zsh -p lua-filesystem -p luarocks5.1 -p lua-toml || exit 1 fi # Set rc_sys="prefix" to not disturb systemd on current system sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$alpine_directory/etc/rc.conf" # Launch chroot -sh $alpine_directory/enter-chroot +sh $alpine_directory/enter-chroot ./build