2017-10-26 19:58:42 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
# Install pkgxx dependancies
|
2018-07-31 18:18:17 +00:00
|
|
|
echo "> Installing Lua Split…"
|
|
|
|
luarocks-5.1 install split || exit 1
|
2018-07-31 18:50:32 +00:00
|
|
|
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 && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
cp pkgxx.conf.example /etc/pkgxx.conf && \
|
|
|
|
cd .. && \
|
|
|
|
rm -rf pkgxx || exit 1
|
2017-10-26 19:58:42 +00:00
|
|
|
|
2018-07-31 18:50:32 +00:00
|
|
|
# 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
|
2017-10-26 19:58:42 +00:00
|
|
|
|
|
|
|
# FIXME: DL yunoconfig
|