mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-07 23:02:40 +02:00
33 lines
990 B
Plaintext
33 lines
990 B
Plaintext
# Contributor: Andrej Kolchin <KAAtheWise@protonmail.com>
|
|
# Maintainer: Andrej Kolchin <KAAtheWise@protonmail.com>
|
|
pkgname=vale
|
|
pkgver=2.29.6
|
|
pkgrel=0
|
|
pkgdesc="A markup-aware linter for prose built with speed and extensibility in mind"
|
|
url="https://vale.sh/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/errata-ai/vale/archive/v$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
export GOFLAGS="$GOFLAGS -modcacherw"
|
|
|
|
build() {
|
|
go build -ldflags "-X main.version=v$pkgver" -o bin/vale ./cmd/vale
|
|
}
|
|
|
|
check() {
|
|
go test ./internal/core ./internal/lint ./internal/check ./internal/nlp ./internal/glob ./cmd/vale
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/vale -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
7c457d3d3262e9099e80a46ccd08530b90f0a6c5e477871f6770da4a065de3aeae308d705c5b03d72b4df5d1330ee89d55e618c8350b168ef9839e6395c2058e vale-2.29.6.tar.gz
|
|
"
|