Added PKGBUILD

main
Jef Roosens 2022-04-25 22:50:04 +02:00
commit bd6cd02946
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 33 additions and 0 deletions

33
PKGBUILD 100644
View File

@ -0,0 +1,33 @@
# 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"
}