summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2e39ddd3725d2e65986353209b7a9227dcd1674 (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
# This file was generated by GoReleaser. DO NOT EDIT.

pkgname='pscale-cli-bin'
pkgver=0.204.0
pkgrel=1
pkgdesc='The PlanetScale CLI'
url='https://github.com/planetscale/cli'
arch=('aarch64' 'i686' 'x86_64')
license=('Apache 2.0')
provides=('pscale')
conflicts=('pscale')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/planetscale/cli/releases/download/v0.204.0/pscale_0.204.0_linux_arm64.tar.gz")
sha256sums_aarch64=('49089695bbbf525efa9321703e98190f434f5d9307146bc44dd6e5713f78c54a')

source_i686=("${pkgname}_${pkgver}_i686.tar.gz::https://github.com/planetscale/cli/releases/download/v0.204.0/pscale_0.204.0_linux_386.tar.gz")
sha256sums_i686=('525bda148febb819fd2f99ec64451968decc9230686389355db64c96cb120a6c')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/planetscale/cli/releases/download/v0.204.0/pscale_0.204.0_linux_amd64.tar.gz")
sha256sums_x86_64=('83509db216c4818ef10129526ef173290254c7e5009726c7ec1721654bb9ff19')

package() {
  # bin
  install -Dm755 "./pscale" "${pkgdir}/usr/bin/pscale"

  # completions
  mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
  mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
  mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
  install -Dm644 "./completions/pscale.bash" "${pkgdir}/usr/share/bash-completion/completions/pscale"
  install -Dm644 "./completions/pscale.zsh" "${pkgdir}/usr/share/zsh/site-functions/_pscale"
  install -Dm644 "./completions/pscale.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/pscale.fish"
}