blob: 8ac462c520f235ac13007e435d2d8e29b1a0cd04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Serge K <arch@phnx47.net>
_pkgname=proto
pkgname="${_pkgname}-bin"
pkgver=0.55.2
pkgrel=1
pkgdesc='Pluggable multi-language version manager'
license=('MIT')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
url='https://github.com/moonrepo/proto'
arch=('x86_64' 'aarch64')
depends=('gcc-libs' 'git' 'unzip' 'gzip' 'xz')
optdepends=('rustup: support for Rust toolchains')
source_x86_64=("${_pkgname}-${pkgver}-${arch[0]}.tar.xz::${url}/releases/download/v${pkgver}/proto_cli-${arch[0]}-unknown-linux-gnu.tar.xz")
source_aarch64=("${_pkgname}-${pkgver}-${arch[1]}.tar.xz::${url}/releases/download/v${pkgver}/proto_cli-${arch[1]}-unknown-linux-gnu.tar.xz")
sha256sums_x86_64=('a24dddb2f279ad65afba95e9dc6ba663a20cfdff1560a74e59f6ee51e7a41308')
sha256sums_aarch64=('7b12f27384e482f010cd88e600cd328364d0d6ef26b18e7836885d8cc5421839')
prepare() {
cd "proto_cli-${CARCH}-unknown-linux-gnu"
mkdir -p completions
"./${_pkgname}" completions --shell bash >"completions/bash"
"./${_pkgname}" completions --shell zsh >"completions/zsh"
"./${_pkgname}" completions --shell fish >"completions/fish"
}
package() {
cd "proto_cli-${CARCH}-unknown-linux-gnu"
install -Dm 755 "${_pkgname}" -t "${pkgdir}/usr/bin"
install -Dm 755 "${_pkgname}-shim" -t "${pkgdir}/usr/bin"
install -Dm 644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${_pkgname}"
install -Dm 644 "completions/bash" "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
install -Dm 644 "completions/zsh" "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
install -Dm 644 "completions/fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish"
}
|