1
0
Fork 0
env/.install/neovim.sh

44 lines
905 B
Bash
Raw Normal View History

2018-03-28 22:01:56 +08:00
#!/bin/sh
2018-03-27 23:59:35 +08:00
set -e
2018-03-30 01:26:58 +08:00
source ./.versions
2018-03-27 23:59:35 +08:00
echo
2018-04-01 18:06:48 +08:00
echo "Installing neovim $NEOVIM_VERSION..."
2018-03-27 23:59:35 +08:00
echo
apk add --no-cache --virtual .build-deps \
2018-04-01 18:06:48 +08:00
curl \
2018-04-01 16:54:18 +08:00
git \
unzip \
2018-04-01 18:06:48 +08:00
build-base \
autoconf \
automake \
cmake \
libtool \
2018-04-01 18:23:47 +08:00
unibilium-dev \
libtermkey-dev \
libvterm-dev \
2018-04-01 20:40:33 +08:00
python3-dev \
python3
2018-04-01 16:54:18 +08:00
git clone https://github.com/neovim/neovim.git
cd neovim
2018-04-01 18:19:48 +08:00
if [ "$NEOVIM_VERSION" = "nightly" ]; then
git checkout $NEOVIM_VERSION
else
git checkout v$NEOVIM_VERSION
fi
if [ "$NEOVIM_VERSION" = "0.2.2" ]; then
# temp fix for #8056 until next release
sed -i 's/https:\/\/raw\.githubusercontent\.com\/mpeterv\/luacheck\/master\/luacheck-scm-1\.rockspec/https:\/\/luarocks\.org\/manifests\/mpeterv\/luacheck-0\.21\.2-1\.rockspec/g' third-party/cmake/BuildLuarocks.cmake
fi
2018-04-01 22:18:29 +08:00
make CMAKE_EXTRA_FLAGS=-DENABLE_JEMALLOC=OFF >/dev/null || make
2018-04-01 18:06:48 +08:00
make install
2018-04-01 16:54:18 +08:00
cd ..
2018-04-01 18:06:48 +08:00
rm -rf neovim
2018-04-01 16:54:18 +08:00
pip3 install neovim
2018-03-30 00:13:16 +08:00
apk del .build-deps