blob: f7b2d8a64a4b50c245f7a60353271fafa2ecebc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: edward-p <edward AT edward-p DOT xyz>
pkgname=lunarvim-git
pkgver=1.2.0.r57.gb661efb3
pkgrel=2
pkgdesc="An IDE layer for Neovim with sane defaults. Completely free and community driven."
arch=('any')
url='https://github.com/LunarVim/LunarVim'
license=('GPL3')
depends=(
'neovim'
'lua'
'git'
'fzf'
'neovim-remote'
'tree-sitter'
'python-pynvim'
'nodejs'
'yarn')
makedepends=('git')
optdepends=('ripgrep: optional dependencies for telescope.nvim')
install=${pkgname}.install
langs=(bash beancount bibtex
c c_sharp clojure cmake comment commonlisp cpp css cuda
dart devicetree dockerfile dot
elixir erlang
fennel fish
go gomod graphql
hcl heex html
java javascript jsdoc json json5 julia
kotlin
latex ledger lua
nix
ocaml ocaml_interface ocamllex
perl php pioasm python
ql
Tree-sitterquerylanguage
r regex rst ruby rust
scala scss sparql supercollider surface svelte
teal tlaplus toml tsx turtle typescript
verilog vim vue
yaml yang
zig)
source=("${pkgname}::git+https://github.com/LunarVim/LunarVim.git#branch=master"
"git+https://github.com/nvim-treesitter/nvim-treesitter.git#branch=0.5-compat"
"init-lvim.sh"
"lvim")
sha256sums=('SKIP'
'SKIP'
'64474d473e462cea404b14cf15d0c9582d2c65be99443c8128a8d9bb0e2b6a41'
'fe16e9974a8a4ee877d63e15f346c6f886c357e08c08a7e300e29092d5ec732a')
pkgver() {
cd "${pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/nvim-treesitter"
runtime="${srcdir}/nvim-treesitter"
for lang in ${langs[@]}; do
if [[ ! -e ${runtime}/parser/${lang}.so ]]; then
nvim --cmd "set runtimepath+=${runtime}" --headless \
+"TSUpdateSync ${lang}" +qall
fi
done
}
package() {
cd "${srcdir}/${pkgname}"
mkdir -p "${pkgdir}/usr/share/lunarvim"{,/ftplugin}
cp -r {lua,snapshots,init.lua} "${pkgdir}/usr/share/lunarvim"
mkdir -p "${pkgdir}/usr/share/lunarvim/prebuild/nvim-treesitter/parser"{,-info}
for parser in "${srcdir}/nvim-treesitter/parser/"*.so; do
install -Dm 755 "${parser}" "${pkgdir}/usr/share/lunarvim/prebuild/nvim-treesitter/parser/${parser##/*/}"
done
for info in "${srcdir}/nvim-treesitter/parser/"*; do
install -Dm 755 "${info}" "${pkgdir}/usr/share/lunarvim/prebuild/nvim-treesitter/parser/${info##/*/}"
done
install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/lunarvim/README.md"
install -Dm 644 "CONTRIBUTING.md" "${pkgdir}/usr/share/doc/lunarvim/CONTRIBUTING.md"
install -Dm 644 "utils/installer/config.example.lua" "${pkgdir}/usr/share/doc/lunarvim/config.example.lua"
install -Dm 755 "${srcdir}/lvim" "${pkgdir}/usr/bin/lvim"
install -Dm 755 "${srcdir}/init-lvim.sh" "${pkgdir}/usr/share/lunarvim/init-lvim.sh"
}
|