makedeb


buf-bin 1.15.0-1


A new way of working with Protocol Buffers

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for buf-bin.

# Maintainer: hiddeninthesand <hiddeninthesand at pm dot me>

pkgname="buf-bin"
_gitname="buf"
provides=("buf")
pkgver='1.15.0'
pkgrel='1'
pkgdesc="A new way of working with Protocol Buffers"
arch=("x86_64")
url="https://buf.build"
license=('Apache')
source=("buf.tar.gz"::"https://github.com/bufbuild/buf/releases/download/v${pkgver}/buf-Linux-x86_64.tar.gz")
b2sums=('d73a807e6617f2a30178eb86118df79fafb323e82c29df0742c736f93de88e9695fed208ce37de82a0b60fb9a798d287d823beb303313b8b9bfd2e2932a93da3')
conflicts=("${_gitname}-git" "${_gitname}")

package() {
    cd "${srcdir}/${_gitname}"
	install -Dm755 "./bin/"* -t "${pkgdir}/usr/bin/"
	install -Dm644 "./etc/bash_completion.d/"* -t "${pkgdir}/usr/share/bash-completion/completions/"
	install -Dm644 "./share/fish/vendor_completions.d/"* -t "${pkgdir}/usr/share/fish/vendor_completions.d/"
    install -Dm644 "./share/man/man1/"* -t "${pkgdir}/usr/share/man/man1/"
    install -Dm644 "./share/zsh/site-functions/"* -t "${pkgdir}/usr/share/zsh/site-functions/"
}