summaryrefslogtreecommitdiff
path: root/testing/efm-langserver/APKBUILD
blob: cf62e767c26601ea17ee07136ff19b2b57f6c7c7 (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
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=efm-langserver
pkgver=0.0.44
pkgrel=6
pkgdesc="General purpose language server"
url="https://github.com/mattn/efm-langserver"
arch="all"
license="MIT"
makedepends="go"
options="net chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/mattn/efm-langserver/archive/refs/tags/v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"


build() {
	go build -ldflags="-X main.revision=$pkgver" -o $pkgname .
}

check() {
	go test ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
d156e8e636f88c3fa8662c9dc154036d5162400d12e0b63e183eb4c4363b13957c7c78b630d3013f62430a8262bf3160be2503ad672e7141fbe12124bce5bb53  efm-langserver-0.0.44.tar.gz
"