mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 20:28:14 +02:00
34 lines
987 B
Text
34 lines
987 B
Text
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=efm-langserver
|
|
pkgver=0.0.54
|
|
pkgrel=5
|
|
pkgdesc="General purpose language server"
|
|
url="https://github.com/mattn/efm-langserver"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
options="net chmod-clean"
|
|
subpackages="$pkgname-doc"
|
|
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
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
9c599930b44486f4e158ba31802277ea12d3e8a7dc7e79556d0960f5c9e874b6bd6cdf91f2751123b9e7704eb6ea3c1fc3a5f2a889ac31b3ef90ce92f9a2afde efm-langserver-0.0.54.tar.gz
|
|
"
|