mirror of
https://github.com/termux/termux-packages
synced 2024-06-19 01:37:07 +00:00
2c7b9a282a
This commit has been automatically submitted by Github Actions.
27 lines
816 B
Bash
27 lines
816 B
Bash
TERMUX_PKG_HOMEPAGE=https://vale.sh
|
|
TERMUX_PKG_DESCRIPTION="A syntax-aware linter for prose built with speed and extensibility in mind"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.4.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/errata-ai/vale/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=03ab170669dfad77dd247d903f65d95584daab4661bb9dc9130e56487fca9617
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_golang
|
|
|
|
go mod init || :
|
|
go mod tidy
|
|
}
|
|
|
|
termux_step_make() {
|
|
cd "$TERMUX_PKG_SRCDIR"/cmd/vale
|
|
go build -o vale -ldflags="-s -w -X 'main.version=${TERMUX_PKG_VERSION}'"
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "${TERMUX_PREFIX}"/bin "$TERMUX_PKG_SRCDIR"/cmd/vale/vale
|
|
}
|