Switched to split package; updated stuff
parent
a3f3ae92b1
commit
5ec6da2c40
19
.SRCINFO
19
.SRCINFO
|
@ -1,15 +1,20 @@
|
||||||
pkgbase = vieter-vls
|
pkgbase = vlang-ls-git
|
||||||
pkgdesc = Language server for the V programming language; synced with the vieter-v compiler.
|
pkgver = r783.66b92a8
|
||||||
pkgver = r582.5ad842f
|
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/vlang/vls
|
url = https://github.com/vlang/vls
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
arch = aarch64
|
arch = aarch64
|
||||||
license = MIT
|
license = MIT
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = glibc
|
makedepends = vlang
|
||||||
depends = vieter-v
|
source = vls::git+https://github.com/vlang/vls
|
||||||
source = vieter-vls::git+https://github.com/vlang/vls
|
|
||||||
md5sums = SKIP
|
md5sums = SKIP
|
||||||
|
|
||||||
pkgname = vieter-vls
|
pkgname = vlang-ls-git
|
||||||
|
pkgdesc = Language server for the V programming language
|
||||||
|
depends = glibc
|
||||||
|
depends = vlang
|
||||||
|
|
||||||
|
pkgname = vlang-ls-git-nvim-ts
|
||||||
|
pkgdesc = Treesitter grammar for V for the Neovim treesitter plugin
|
||||||
|
depends = glibc
|
||||||
|
|
43
PKGBUILD
43
PKGBUILD
|
@ -1,48 +1,53 @@
|
||||||
# Maintainer: Jef Roosens
|
# Maintainer: Jef Roosens
|
||||||
|
|
||||||
pkgname=vieter-vls
|
_pkgname='vls'
|
||||||
pkgver=r582.5ad842f
|
pkgbase=vlang-ls-git
|
||||||
|
pkgname=('vlang-ls-git' 'vlang-ls-git-nvim-ts')
|
||||||
|
pkgver=r783.66b92a8
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Language server for the V programming language; synced with the vieter-v compiler.'
|
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64')
|
||||||
|
|
||||||
url='https://github.com/vlang/vls'
|
url='https://github.com/vlang/vls'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
|
|
||||||
depends=('glibc' 'vieter-v')
|
makedepends=('git' 'vlang')
|
||||||
makedepends=('git')
|
|
||||||
|
|
||||||
source=("${pkgname}::git+https://github.com/vlang/vls")
|
source=("${_pkgname}::git+https://github.com/vlang/vls")
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${pkgname}"
|
cd "${_pkgname}"
|
||||||
|
|
||||||
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${pkgname}"
|
cd "${_pkgname}"
|
||||||
|
|
||||||
v run build.vsh gcc
|
v run build.vsh "${CC:-gcc}"
|
||||||
|
|
||||||
msg "Building treesitter grammar..."
|
msg "Building treesitter grammar..."
|
||||||
|
|
||||||
# Building with -prod is required because otherwise, the binary contains
|
# Building with -prod is required because otherwise, the binary contains
|
||||||
# tcc symbols which isn't usually installed on the user's system.
|
# tcc symbols which isn't usually installed on the user's system.
|
||||||
v -cc gcc -shared -prod tree_sitter_v
|
v -cc "${CC:-gcc}" -shared -prod tree_sitter_v
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package_vlang-ls-git() {
|
||||||
# Install vls
|
pkgdesc='Language server for the V programming language'
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
depends=('glibc' 'vlang')
|
||||||
install -Dm755 "${pkgname}/bin/vls" "${pkgdir}/usr/bin/vls"
|
|
||||||
install -Dm644 "${pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
|
install -Dm755 "${_pkgname}/bin/vls" "${pkgdir}/usr/bin/vls"
|
||||||
|
install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${_pkgname}"
|
||||||
|
}
|
||||||
|
|
||||||
|
package_vlang-ls-git-nvim-ts() {
|
||||||
|
pkgdesc="Treesitter grammar for V for the Neovim treesitter plugin"
|
||||||
|
depends=('glibc')
|
||||||
|
|
||||||
# Install treesitter grammar
|
|
||||||
# This package installs the parser & queries for Neovim in its runtimepath
|
|
||||||
install -dm755 "${pkgdir}/usr/share/nvim/runtime/parser"
|
install -dm755 "${pkgdir}/usr/share/nvim/runtime/parser"
|
||||||
install -dm755 "${pkgdir}/usr/share/nvim/runtime/queries/v"
|
install -dm755 "${pkgdir}/usr/share/nvim/runtime/queries/v"
|
||||||
install -Dm755 "${pkgname}/tree_sitter_v/tree_sitter_v.so" "${pkgdir}/usr/share/nvim/runtime/parser/v.so"
|
install -Dm755 "${_pkgname}/tree_sitter_v/tree_sitter_v.so" "${pkgdir}/usr/share/nvim/runtime/parser/v.so"
|
||||||
install -m644 "${pkgname}/tree_sitter_v/queries"/* "${pkgdir}/usr/share/nvim/runtime/queries/v"
|
install -m644 "${_pkgname}/tree_sitter_v/queries"/* "${pkgdir}/usr/share/nvim/runtime/queries/v"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue