summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5b6356b1a4cf462f86942a48586cb2b8e11b716 (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
38
39
40
41
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Xavier Portilla Edo <xavierportillaedo at gmail dot com>

pkgname='cxcli-bin'
pkgver=1.236.0
pkgrel=1
pkgdesc='The missing CLI for your Dialogflow CX projects'
url='https://cxcli.xavidop.me'
arch=('aarch64' 'armv7h' 'i686' 'x86_64')
license=('Apache-2.0')
provides=('dialogflow-cx-cli')
conflicts=('dialogflow-cx-cli')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/xavidop/dialogflow-cx-cli/releases/download/v1.236.0/cxcli_Linux_arm64.tar.gz")
sha256sums_aarch64=('4373016fbbf8fe47f9aa169eb4f7abfc60b61dcf7e0ba5accbbc14c9455df9b0')

source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::https://github.com/xavidop/dialogflow-cx-cli/releases/download/v1.236.0/cxcli_Linux_armv7.tar.gz")
sha256sums_armv7h=('fa11a17867f1e794874626a4141985d6fff609cf8b2d52410848c7c24815b4d9')

source_i686=("${pkgname}_${pkgver}_i686.tar.gz::https://github.com/xavidop/dialogflow-cx-cli/releases/download/v1.236.0/cxcli_Linux_i386.tar.gz")
sha256sums_i686=('3e3f41c2972bf98035cc11a86e5ed309c351557cd169a07f303d25242aff566c')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/xavidop/dialogflow-cx-cli/releases/download/v1.236.0/cxcli_Linux_x86_64.tar.gz")
sha256sums_x86_64=('1023f4ec0d2c63084e47fc81aff7b9a36a34be90c235e07f62d99c84f669696a')

package() {
  # bin
  install -Dm755 "./cxcli" "${pkgdir}/usr/bin/cxcli"
  # license
  install -Dm644 "./LICENSE.md" "${pkgdir}/usr/share/licenses/cxcli/LICENSE"
  # 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/cxcli.bash" "${pkgdir}/usr/share/bash-completion/completions/cxcli"
  install -Dm644 "./completions/cxcli.zsh" "${pkgdir}/usr/share/zsh/site-functions/_cxcli"
  install -Dm644 "./completions/cxcli.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/cxcli.fish"

  # man pages
  install -Dm644 "./manpages/cxcli.1.gz" "${pkgdir}/usr/share/man/man1/cxcli.1.gz"
}