blob: 08eb386eee7ada67c0187075dc38e6d7d6c463b5 (
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
|
# Maintainer: h8ray <gofindme at dmc dot chat>
_pkgname=v-analyzer
pkgname="${_pkgname}-git"
pkgver=r488.7e11a6f
pkgrel=1
pkgdesc='Bring IDE features for V programming languages in VS Code, Vim and other editors'
url="https://github.com/vlang/v-analyzer"
arch=('x86_64')
license=('MIT')
depends=('vlang')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/vlang/v-analyzer.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_pkgname"
git submodule init
git submodule update
}
build() {
cd "$srcdir/$_pkgname"
v build.vsh release
}
package() {
cd "$srcdir/$_pkgname"
install -Dm755 "./bin/v-analyzer" "$pkgdir/usr/bin/v-analyzer"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
|