aboutsummaryrefslogtreecommitdiff
path: root/repos/community/neovim/abuild
diff options
context:
space:
mode:
authoremmett1 <me@emmett1.my>2026-05-29 17:56:46 +0200
committeremmett1 <me@emmett1.my>2026-05-29 17:56:46 +0200
commit3b312c63a3d1138dd06aa3dbef31bf69a58aa87a (patch)
tree0c94e3078ce45b630a532f16bfd2bfd66829264b /repos/community/neovim/abuild
parentd09592d572a6c9d7e0631a04dba94d25970c61e3 (diff)
parentc1a2776d5d2a810a3f7dc88cd05f680c5e6d475f (diff)
downloadalicelinux-3b312c63a3d1138dd06aa3dbef31bf69a58aa87a.tar.gz
alicelinux-3b312c63a3d1138dd06aa3dbef31bf69a58aa87a.zip
Merge pull request 'new port: neovim' (#58) from ohnoes_ohnoes/alicelinux:neovim into main
Reviewed-on: https://codeberg.org/emmett1/alicelinux/pulls/58
Diffstat (limited to 'repos/community/neovim/abuild')
-rw-r--r--repos/community/neovim/abuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/repos/community/neovim/abuild b/repos/community/neovim/abuild
new file mode 100644
index 00000000..77228d65
--- /dev/null
+++ b/repos/community/neovim/abuild
@@ -0,0 +1,26 @@
+name=neovim
+version=0.12.2
+release=1
+source=https://github.com/$name/$name/archive/refs/tags/v$version.tar.gz
+
+build() {
+ cmake -S cmake.deps -B .deps \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
+ -DUSE_BUNDLED=ON \
+ -DUSE_BUNDLED_LUAJIT=OFF
+
+ # apkg set the DESTDIR variable to $PKG by default. That will harm
+ # Neovim bundled packages. So we need to unset DESTDIR before proceding
+ (unset DESTDIR; cmake --build .deps)
+ # This "installs" bundles inside .deps
+
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_LTO=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_C_FLAGS_RELEASE="$CFLAGS"
+ cmake --build build
+ DESTDIR=$PKG cmake --install build
+}