Package Details: vale 3.3.0-1

Git Clone URL: https://aur.archlinux.org/vale.git (read-only, click to copy)
Package Base: vale
Description: A customizable, syntax-aware linter for prose
Upstream URL: https://github.com/errata-ai/vale
Keywords: asciidoc html markdown restructuredtext
Licenses: MIT
Submitter: kgizdov
Maintainer: rafaelff
Last Packager: rafaelff
Votes: 10
Popularity: 0.040225
First Submitted: 2017-04-07 22:57 (UTC)
Last Updated: 2024-03-12 16:38 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

yorickpeterse commented on 2023-12-11 23:48 (UTC)

Thanks!

rafaelff commented on 2023-12-11 02:35 (UTC)

In package 2.30.0-1, I removed what seems to be unnecessary lines (GOPATH and PATH) and duplicated flags settings (exporting as env variables and then passing them again to the 'go build' command line).

Let me know if this causes any regression for you.

rafaelff commented on 2023-12-04 15:19 (UTC)

Adopted and version updated.

yorickpeterse commented on 2023-11-13 19:45 (UTC) (edited on 2023-11-13 19:49 (UTC) by yorickpeterse)

Could this package be updated to the latest version of Vale? Alternatively, given it's been flagged out of date for a while and maintenance seems a bit spotty, perhaps it's best if somebody else takes over?

In the mean time, here's an updated PKGBUILD:

# Maintainer: Konstantin Gizdov <arch at kge dot pw>
# Co-Maintainer: Achilleas Pipinellis <axilleas at archlinux dot gr>
pkgname=vale
pkgver=2.29.6
pkgrel=1
pkgdesc="A customizable, syntax-aware linter for prose"
arch=('i686' 'x86_64')
url="https://github.com/errata-ai/vale"
license=('MIT')
makedepends=('go' 'go-bindata' 'rsync')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('6ac15dd6defed7618d61f1bbbc79d20358f919ade8f60037ea5da775e4b554d2')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    export CGO_CPPFLAGS="${CPPFLAGS}"
    export CGO_CFLAGS="${CFLAGS}"
    export CGO_CXXFLAGS="${CXXFLAGS}"
    export CGO_LDFLAGS="${LDFLAGS}"
    export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
    export GOPATH="${srcdir}/gopath"
    export PATH="${srcdir}/gopath/bin:$PATH"

    go build \
      -trimpath \
      -buildmode=pie \
      -mod=readonly \
      -modcacherw \
      -ldflags "-s -w -X main.version=\"${pkgver}\" -linkmode external -extldflags \"${LDFLAGS}\"" \
      -o bin/vale ./cmd/vale
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    install -Dm755 "${srcdir}/${pkgname}-${pkgver}/bin/vale" "${pkgdir}/usr/bin/vale"
    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/vale/README.md"
    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/vale/LICENSE"
}

axil42 commented on 2023-01-23 19:29 (UTC)

Apologies, it's updated now.

johnhamelink commented on 2022-08-06 12:24 (UTC) (edited on 2022-08-06 12:25 (UTC) by johnhamelink)

This package is 4 revisions behind https://github.com/errata-ai/vale/releases now :(

I modified the PKGBUILD in order to use the latest version, since neither this package nor vale-git are up to date:

# Maintainer: Konstantin Gizdov <arch at kge dot pw>
# Co-Maintainer: Achilleas Pipinellis <axilleas at archlinux dot gr>
pkgname=vale
pkgver=2.20.1
pkgrel=1
pkgdesc="A customizable, syntax-aware linter for prose"
arch=('i686' 'x86_64')
url="https://github.com/errata-ai/vale"
license=('MIT')
makedepends=('go' 'go-bindata' 'rsync')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('48cb6e37579b83fb75b919021c79e92c6b0519998818bf0080b2c7a53cf5f563')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    export CGO_CPPFLAGS="${CPPFLAGS}"
    export CGO_CFLAGS="${CFLAGS}"
    export CGO_CXXFLAGS="${CXXFLAGS}"
    export CGO_LDFLAGS="${LDFLAGS}"
    export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
    export GOPATH="${srcdir}/gopath"
    export PATH="${srcdir}/gopath/bin:$PATH"

    go build \
      -trimpath \
      -buildmode=pie \
      -mod=readonly \
      -modcacherw \
      -ldflags "-s -w -X main.version=\"${pkgver}\" -linkmode external -extldflags \"${LDFLAGS}\"" \
      -o bin/vale ./cmd/vale
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    install -Dm755 "${srcdir}/${pkgname}-${pkgver}/bin/vale" "${pkgdir}/usr/bin/vale"
    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/vale/README.md"
    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/vale/LICENSE"
}

axil42 commented on 2022-03-18 05:42 (UTC)

@kgizdov would you be willing to add me as a co-maintainer? I'm using this tool almost daily, and I can make sure it's updated. Thanks!

ejiek commented on 2020-10-05 16:32 (UTC)

@kgizdov thanks for such a quick update!

kgizdov commented on 2020-10-05 13:11 (UTC)

@ejiek, glibc is in base, so it does not need to be included.