mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-14 09:22:28 +02:00
37 lines
1 KiB
Text
37 lines
1 KiB
Text
# Contributor: Andrej Kolchin <KAAtheWise@protonmail.com>
|
|
# Contributor: fossdd <fossdd@pwned.life>
|
|
# Maintainer: fossdd <fossdd@pwned.life>
|
|
pkgname=vale
|
|
pkgver=3.12.0
|
|
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"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/errata-ai/vale/archive/v$pkgver.tar.gz"
|
|
options="net"
|
|
|
|
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() {
|
|
PATH="$PWD/bin:$PATH" \
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/vale -t "$pkgdir"/usr/bin
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
fbe826c0cf146b7bcc80d9a00f70c5037e94c44f13a39118debbce29f5ada5761869d2e6d7a2993181fe04e7c4343a6b02a2d3dc03cb214ac85d9f96fbc168ac vale-3.12.0.tar.gz
|
|
"
|