mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-08 12:38:43 +08:00
Neovim can compile now
This commit is contained in:
parent
4c35a8fa67
commit
fb1fdb5e9a
@ -9,6 +9,7 @@ dependencies = [
|
|||||||
script = """
|
script = """
|
||||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||||
make linux CC="${CC} -I${COOKBOOK_SYSROOT}/include/luajit-2.1"
|
make linux CC="${CC} -I${COOKBOOK_SYSROOT}/include/luajit-2.1"
|
||||||
mkdir -p ${COOKBOOK_STAGE}/usr/lib
|
mkdir -p ${COOKBOOK_STAGE}/usr/lib/pkgconfig
|
||||||
cp *.so ${COOKBOOK_STAGE}/usr/lib
|
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]
|
[source]
|
||||||
tar = "https://github.com/neovim/neovim/archive/refs/tags/v0.11.3.tar.gz"
|
tar = "https://github.com/neovim/neovim/archive/refs/tags/v0.11.3.tar.gz"
|
||||||
|
|
||||||
@ -18,6 +18,10 @@ dependencies = [
|
|||||||
script = """
|
script = """
|
||||||
DYNAMIC_INIT
|
DYNAMIC_INIT
|
||||||
cookbook_cmake \
|
cookbook_cmake \
|
||||||
-DUSE_BUNDLED=1 \
|
|
||||||
-DLUA_GEN_PRG=luajit
|
-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