# Maintainer: Jef Roosens pkgname=vieter-vls pkgver=latest.r1.g5fbfe67 pkgrel=1 pkgdesc="Language server for the V programming language; synced with the vieter-v compiler." arch=("x86_64" "aarch64") url="https://github.com/vlang/vls" license=("MIT") depends=("glibc" "vieter-v") makedepends=("git" "gcc") source=("$pkgname::git+https://github.com/vlang/vls") md5sums=("SKIP") pkgver() { git -C "$pkgname" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "$pkgname" v run build.vsh gcc } package() { install -dm755 "$pkgdir/usr/bin" install -Dm755 "$pkgname/bin/vls" "$pkgdir/usr/bin/vls" install -Dm644 "$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" }