# neovim - Hyperextensible Vim-based editor
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=neovim
version=0.12.2
release=1
desc="Hyperextensible Vim-based editor"
url="https://neovim.io/"
license="Apache-2.0 Vim"
depend="glibc libuv msgpack-c libvterm luajit unibilium tree-sitter"
makedepend="cmake ninja"
source="https://github.com/neovim/neovim/archive/refs/tags/v0.12.2.tar.gz"
sha256="SKIP"

build() {
	cmake -S "neovim-0.12.2" -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=ON
	ninja -C build -j"$JOBS"
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}
