yunorock-dev/build

38 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/usr/bin/env sh
2018-08-02 15:32:28 +00:00
# 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
# Configure pkgxx
echo "> Configure pkgxx"
mkdir -p /opt/pkgxx/dev && \
sed -i -e 's#prefix = .*$#prefix = "/opt/pkgxx/dev"#' \
-e 's#distribution = .*$#distribution = "Alpine"#' \
-e 's#package-manager = .*$#package-manager = "apk"#' \
-e 's#repository-manager = .*$#repository-manager = "apk"#' \
-e '/distribution-codename/d' \
-e 's#provider = .*$#provider = "Dev Team"#' /etc/pkgxx.conf
# FIXME: DL yunoconfig