mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 18:34:17 +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.11.2
|
|
pkgrel=2
|
|
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="
|
|
b70d53675f459d06d7a904744dd25c1f8a945cc8aa4483457d407a978f8c87b1214bb663dc0826ba346ad71ed280755627bd876d6fb24beaff6db467bad11101 vale-3.11.2.tar.gz
|
|
"
|