diff --git a/recipes/wip/libs/lua/lpeg/recipe.toml b/recipes/wip/libs/lua/lpeg/recipe.toml index 094d9b13..484e5b3a 100644 --- a/recipes/wip/libs/lua/lpeg/recipe.toml +++ b/recipes/wip/libs/lua/lpeg/recipe.toml @@ -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 """ \ No newline at end of file diff --git a/recipes/wip/text/neovim/recipe.toml b/recipes/wip/text/neovim/recipe.toml index f5e46fe2..c521fd34 100644 --- a/recipes/wip/text/neovim/recipe.toml +++ b/recipes/wip/text/neovim/recipe.toml @@ -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 """