Installation de l'environnement de développement de YunoRock
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
865 B

#!/usr/bin/env sh
# Generate public key for abuild
echo "> abuild keys generation…"
abuild-keygen -a -n
# Install pkgxx dependancies
echo "> Installing Lua Split…"
luarocks-5.1 install split || exit 1
echo "> Installing build.zsh…"
git clone https://github.com/lukc/build.zsh && \
cd build.zsh && \
make && \
make install && \
cd .. && \
rm -rf build.zsh || exit 1
echo "> Installing pkgxx"
git clone https://github.com/lukc/pkgxx && \
cd pkgxx && \
touch doc/pkgxx.1 doc/package.toml.5 doc/pkgxx.conf.5 && \
make && \
make install && \
cp pkgxx.conf.example /etc/pkgxx.conf && \
cd .. && \
rm -rf pkgxx || exit 1
# APK configuration
echo "> Configure APK to use pkg++ as supplementary repository…"
grep -q "^/opt/pkgxx/dev$" /etc/apk/repositories || \
echo "/opt/pkgxx/dev" >> /etc/apk/repositories
# FIXME: DL yunoconfig