nvim-mcp-git

LOW
maintainer rubin55 0 votes scanned 2026-09-19 13:30:35.967305
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Rubin Simons <me@rubin55.org>
2
3_branch=main
4_pkgname=nvim-mcp
5pkgname=${_pkgname}-git
6pkgver=r323.986be68
7pkgrel=1
8pkgdesc='MCP server for Neovim, git main build'
9arch=('x86_64' 'aarch64')
10url="https://github.com/linw1995/${_pkgname}"
11license=('Apache-2.0')
12depends=('gcc-libs' 'glibc')
13makedepends=('cargo' 'git')
14checkdepends=('neovim')
15optdepends=('neovim: Lua plugin that registers the RPC socket')
16provides=("${_pkgname}")
17conflicts=("${_pkgname}")
18install="${pkgname}.install"
19source=("${pkgname}::git+${url}.git#branch=${_branch}")
20sha256sums=('SKIP')
21
22pkgver() {
23 cd "${srcdir}/${pkgname}"
24 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
25}
26
27prepare() {
28 cd "${srcdir}/${pkgname}"
29 export RUSTUP_TOOLCHAIN=stable
30 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
31}
32
33build() {
34 cd "${srcdir}/${pkgname}"
35 export RUSTUP_TOOLCHAIN=stable
36 export CARGO_TARGET_DIR=target
37
38 # build.rs reads these for `nvim-mcp --version`; the checkout is clean.
39 export GIT_COMMIT_SHA="$(git rev-parse HEAD)"
40 export GIT_DIRTY=false
41
42 # aws-lc-sys compiles its C and assembly with the cc crate; LTO hides
43 # those symbols from rust-lld and linking fails with undefined
44 # aws_lc_*_EVP_AEAD_CTX_zero references.
45 export CFLAGS="${CFLAGS//-flto=auto/}"
46 export CXXFLAGS="${CXXFLAGS//-flto=auto/}"
47
48 cargo build --frozen --release
49}
50
51check() {
52 cd "${srcdir}/${pkgname}"
53 export RUSTUP_TOOLCHAIN=stable
54 export CARGO_TARGET_DIR=target
55
56 # Integration tests drive a live Neovim instance and its LSP servers.
57 cargo test --frozen --release -- --skip integration_tests
58}
59
60package() {
61 cd "${srcdir}/${pkgname}"
62 install -Dm755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
63
64 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
65 install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/docs" docs/*.md
66 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
67}
68

Scan history

Scanned at (UTC)SeverityRules
2026-09-19 13:30:35 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion