Add new script to install pkgxx dependancies
This commit is contained in:
parent
e9cdaddf8d
commit
e1b0251a5d
15
build
Executable file
15
build
Executable 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
|
@ -13,11 +13,11 @@ fi
|
|||||||
|
|
||||||
# Install Alpine
|
# Install Alpine
|
||||||
if ! test -d "$alpine_directory"; then
|
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
|
fi
|
||||||
|
|
||||||
# Set rc_sys="prefix" to not disturb systemd on current system
|
# 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"
|
sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$alpine_directory/etc/rc.conf"
|
||||||
|
|
||||||
# Launch chroot
|
# Launch chroot
|
||||||
sh $alpine_directory/enter-chroot
|
sh $alpine_directory/enter-chroot ./build
|
||||||
|
Loading…
Reference in New Issue
Block a user