Browse Source

Add new script to install pkgxx dependancies

master
Olivier DOSSMANN 5 years ago
parent
commit
e1b0251a5d
  1. 15
      build
  2. 4
      install-and-chroot.sh

15
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

4
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

Loading…
Cancel
Save