summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1c97dc03460100a5b3af7f4db905e93c7528697 (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.210.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.210.0/pscale_0.210.0_linux_arm64.tar.gz")
sha256sums_aarch64=('53df6122b5bfef02426079ea29a26782907d21209d1171470fc622277a2ee571')

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

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

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"
}