Add new script to install pkgxx dependancies

master
Olivier DOSSMANN 2017-10-26 21:58:42 +02:00
parent e9cdaddf8d
commit e1b0251a5d
2 changed files with 17 additions and 2 deletions

15
build 100755
View File

@ -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

View File

@ -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