Package Details: buf 1.13.1-1

Git Clone URL: https://aur.archlinux.org/buf.git (read-only, click to copy)
Package Base: buf
Description: A new way of working with Protocol Buffers
Upstream URL: https://buf.build
Keywords: protobuf
Licenses: Apache
Submitter: amenzhinsky
Maintainer: doriable (buf)
Last Packager: buf
Votes: 6
Popularity: 0.109101
First Submitted: 2020-06-25 09:27 (UTC)
Last Updated: 2023-01-27 20:57 (UTC)

Latest Comments

nnovak commented on 2023-01-05 19:05 (UTC)

This diff to the PKGBUILD might make the package simpler to update in the future, as the version only needs to be updated in one place

diff --git a/PKGBUILD b/PKGBUILD
index 99d5efa..8a7a9e8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,10 +8,10 @@ arch=("any")
 url="https://buf.build"
 license=('Apache')
 makedepends=('go')
-source=("https://github.com/bufbuild/buf/archive/v1.10.0.tar.gz")
+source=("https://github.com/bufbuild/buf/archive/v$pkgver.tar.gz")

 build() {
-   cd ${pkgname}-1.10.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.10.0/buf" "${pkgdir}/usr/bin/buf"
-   install -Dm755 "${pkgname}-1.10.0/protoc-gen-buf-lint" "${pkgdir}/usr/bin/protoc-gen-buf-lint"
-   install -Dm755 "${pkgname}-1.10.0/protoc-gen-buf-breaking" "${pkgdir}/usr/bin/protoc-gen-buf-breaking"
-   install -Dm644 "${pkgname}-1.10.0/completion.bash" "${pkgdir}/etc/bash_completion.d/buf"
-   install -Dm644 "${pkgname}-1.10.0/completion.zsh" "${pkgdir}/usr/share/zsh/site-functions/_buf"
-   install -Dm644 "${pkgname}-1.10.0/completion.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/buf.fish"
-   install -Dm644 "${pkgname}-1.10.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=('0fb3f1796164f86912e83c2e16c5a5f13d92589969661b1dc6cd6ee7f3670b1d')

fuhry commented on 2022-10-24 17:12 (UTC)

Go binaries are not architecture-independent, so this package should not use arch=('any'). Can it be changed to arch=('x86_64') or, optionally, add in aarch64 and armv7l if you need to support ArchLinuxARM? Thank you!