diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,17 +1,17 @@ # Maintainer: Buf <bot@buf.build> # Contributor: Alexander Menzhinsky <amenzhinsky@gmail.com> pkgname=buf -pkgver=1.19.0 +pkgver=1.20.0 pkgrel=1 pkgdesc="A new way of working with Protocol Buffers" arch=("any") url="https://buf.build" license=('Apache') makedepends=('go') -source=("https://github.com/bufbuild/buf/archive/v1.19.0.tar.gz") +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bufbuild/buf/archive/v${pkgver}.tar.gz") build() { - cd ${pkgname}-1.19.0 + cd ${pkgname}-${pkgver} go build -trimpath -buildmode=pie -mod=readonly -modcacherw -buildvcs=false -o . ./cmd/{buf,protoc-gen-buf-lint,protoc-gen-buf-breaking} ./buf completion bash >completion.bash ./buf completion zsh >completion.zsh @@ -21,13 +21,13 @@ build() { } package() { - install -Dm755 "${pkgname}-1.19.0/buf" "${pkgdir}/usr/bin/buf" - install -Dm755 "${pkgname}-1.19.0/protoc-gen-buf-lint" "${pkgdir}/usr/bin/protoc-gen-buf-lint" - install -Dm755 "${pkgname}-1.19.0/protoc-gen-buf-breaking" "${pkgdir}/usr/bin/protoc-gen-buf-breaking" - install -Dm644 "${pkgname}-1.19.0/completion.bash" "${pkgdir}/etc/bash_completion.d/buf" - install -Dm644 "${pkgname}-1.19.0/completion.zsh" "${pkgdir}/usr/share/zsh/site-functions/_buf" - install -Dm644 "${pkgname}-1.19.0/completion.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/buf.fish" - install -Dm644 "${pkgname}-1.19.0/manpages/${pkgname}"* -t "${pkgdir}/usr/share/man/man1/" + install -Dm755 "${pkgname}-${pkgver}/buf" "${pkgdir}/usr/bin/buf" + install -Dm755 "${pkgname}-${pkgver}/protoc-gen-buf-lint" "${pkgdir}/usr/bin/protoc-gen-buf-lint" + install -Dm755 "${pkgname}-${pkgver}/protoc-gen-buf-breaking" "${pkgdir}/usr/bin/protoc-gen-buf-breaking" + install -Dm644 "${pkgname}-${pkgver}/completion.bash" "${pkgdir}/etc/bash_completion.d/buf" + install -Dm644 "${pkgname}-${pkgver}/completion.zsh" "${pkgdir}/usr/share/zsh/site-functions/_buf" + install -Dm644 "${pkgname}-${pkgver}/completion.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/buf.fish" + install -Dm644 "${pkgname}-${pkgver}/manpages/${pkgname}"* -t "${pkgdir}/usr/share/man/man1/" } -sha256sums=('e3cf1521222902d13b4e72f8dcd2f63ec04790324e288b650de6276a0edc7836') +sha256sums=('7aee2bfc54e022fea9c884fbc58c1c39e52586087e8da7bb0f6034d37b625f60') |