diff options
author | Aliaksandr Mianzhynski | 2020-06-25 12:26:42 +0300 |
---|---|---|
committer | Aliaksandr Mianzhynski | 2020-06-25 12:26:42 +0300 |
commit | 980ef990b6a611cad34b793c6ad31918354950ad (patch) | |
tree | 92da28a8c47a4ed564f49f8067bff21b72be9c6e | |
download | aur-980ef990b6a611cad34b793c6ad31918354950ad.tar.gz |
Init
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..aea7acf1f24c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = buf + pkgdesc = A new way of working with Protocol Buffers + pkgver = 0.18.0 + pkgrel = 1 + url = https://buf.build + arch = i686 + arch = x86_64 + arch = armv5tel + arch = armv6l + arch = armv71 + license = Apache + makedepends = go + depends = protobuf + source = https://github.com/bufbuild/buf/archive/v0.18.0.tar.gz + sha256sums = 11b0df4a0d4c7226234306a674d56e951d7963dcec5da7f94543501c46e5ad36 + +pkgname = buf + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..edfe4342251a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Alexander Menzhinsky <amenzhinsky@gmail.com> +pkgname=buf +pkgver=0.18.0 +pkgrel=1 +pkgdesc="A new way of working with Protocol Buffers" +arch=('i686' 'x86_64' 'armv5tel' 'armv6l' 'armv71') +url="https://buf.build" +license=('Apache') +depends=('protobuf') +makedepends=('go') +source=("https://github.com/bufbuild/buf/archive/v${pkgver}.tar.gz") + +build() { + cd ${pkgname}-${pkgver} + go build -trimpath -mod=readonly -modcacherw -o . ./cmd/{buf,protoc-gen-buf-check-lint,protoc-gen-buf-check-breaking} +} + +package() { + install -Dm755 "${pkgname}-${pkgver}/buf" "${pkgdir}/usr/bin/buf" + install -Dm755 "${pkgname}-${pkgver}/protoc-gen-buf-check-lint" "${pkgdir}/usr/bin/protoc-gen-buf-check-lint" + install -Dm755 "${pkgname}-${pkgver}/protoc-gen-buf-check-breaking" "${pkgdir}/usr/bin/protoc-gen-buf-check-breaking" +} + +sha256sums=('11b0df4a0d4c7226234306a674d56e951d7963dcec5da7f94543501c46e5ad36') |