2017-10-26 19:58:42 +00:00
|
|
|
#!/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
|
|
|
|
|
2017-10-26 19:58:42 +00:00
|
|
|
# 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 && \
|
2018-08-04 14:04:19 +00:00
|
|
|
touch doc/pkgxx.1 doc/package.toml.5 doc/pkgxx.conf.5 && \
|
2018-07-31 18:50:32 +00:00
|
|
|
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-08-04 15:54:33 +00:00
|
|
|
# APK configuration
|
|
|
|
echo "> Configure APK to use pkg++ as supplementary repository…"
|
2018-08-05 09:21:37 +00:00
|
|
|
grep -q "^/srv/pkgxx/dev$" /etc/apk/repositories || \
|
|
|
|
echo "/srv/pkgxx/dev" >> /etc/apk/repositories
|
2018-08-04 15:54:33 +00:00
|
|
|
|
2017-10-26 19:58:42 +00:00
|
|
|
# FIXME: DL yunoconfig
|