aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gopls/APKBUILD
blob: 34ba56fb0b7ce05999fb4d3b9ba8af3132988f02 (plain) (blame)
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
# Contributor: David Florness <david@florness.com>
# Maintainer: David Florness <david@florness.com>
pkgname=gopls
pkgver=0.4.1
pkgrel=0
pkgdesc="Language server for Go programming language"
url="https://github.com/golang/tools/blob/master/gopls"
arch="all !mips !mips64" # go is missing
options="chmod-clean"
license="BSD-3-Clause"
makedepends="go>=1.12"
source="$pkgname-$pkgver.tar.gz::https://github.com/golang/tools/archive/gopls/v$pkgver.tar.gz"
builddir="$srcdir/tools-$pkgname-v$pkgver/$pkgname"
export GOPATH="$srcdir"

check() {
	cd "test"
	go test
}

build() {
	go build -o "$pkgname" -trimpath
}

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

sha512sums="0b47d3aa84d5487b6164e73ea15004597a6bc659825ec8717e2d29fda3512db53aca559a5bb0bf768823752a36a720a4536761589e3d5a236cbfeadf3eee58d7  gopls-0.4.1.tar.gz"