mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Neovim can compile now
This commit is contained in:
parent
4c35a8fa67
commit
fb1fdb5e9a
@ -9,6 +9,7 @@ dependencies = [
|
||||
script = """
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
make linux CC="${CC} -I${COOKBOOK_SYSROOT}/include/luajit-2.1"
|
||||
mkdir -p ${COOKBOOK_STAGE}/usr/lib
|
||||
cp *.so ${COOKBOOK_STAGE}/usr/lib
|
||||
mkdir -p ${COOKBOOK_STAGE}/usr/lib/pkgconfig
|
||||
cp lpeg.so ${COOKBOOK_STAGE}/usr/lib/liblpeg.so.1
|
||||
ln -s "liblpeg.so.1" ${COOKBOOK_STAGE}/usr/lib/liblpeg.so
|
||||
"""
|
||||
@ -1,4 +1,4 @@
|
||||
#TODO probably wrong script, see https://github.com/neovim/neovim/wiki/Installing-Neovim#install-from-source
|
||||
#TODO mostly work, kinda slow, can't quit (signal issues?)
|
||||
[source]
|
||||
tar = "https://github.com/neovim/neovim/archive/refs/tags/v0.11.3.tar.gz"
|
||||
|
||||
@ -18,6 +18,10 @@ dependencies = [
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
cookbook_cmake \
|
||||
-DUSE_BUNDLED=1 \
|
||||
-DLUA_GEN_PRG=luajit
|
||||
|
||||
# Lpeg is absolute path https://github.com/neovim/neovim/issues/23395
|
||||
patchelf --replace-needed \
|
||||
"${COOKBOOK_SYSROOT}/usr/lib/liblpeg.so" \
|
||||
'liblpeg.so.1' ${COOKBOOK_STAGE}/usr/bin/nvim
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user