summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7e6ee80160fb5fd4f55cbe61d47be4c0e6da5e9 (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
42
43
44
45
46
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: neilotoole <neilotoole@apache.org>
# Maintainer: Diego Souza <diegosouza.br@gmail.com>
# Contributor: neilotoole <neilotoole@apache.org>

pkgname='sq-bin'
pkgver=0.48.3
pkgrel=1
pkgdesc='sq data wrangler'
url='https://sq.io'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('sq')
conflicts=('sq')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/neilotoole/sq/releases/download/v0.48.3/sq-0.48.3-arm64-arm64.tar.gz")
sha256sums_aarch64=('c75d1474a6c83fe18966aea0164081e835dea545e9067faf85315fde2ed88b83')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/neilotoole/sq/releases/download/v0.48.3/sq-0.48.3-amd64-amd64.tar.gz")
sha256sums_x86_64=('41bfa4e9691914cd9d91b621bb12eabb744d0e3139c53152407475a1f5281e4b')

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

  # license
  mkdir -p "${pkgdir}/usr/share/licenses/sq"
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/sq/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/sq.bash" "${pkgdir}/usr/share/bash-completion/completions/sq"
  install -Dm644 "./completions/sq.zsh" "${pkgdir}/usr/share/zsh/site-functions/_sq"
  install -Dm644 "./completions/sq.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/sq.fish"

  # docs
  mkdir -p "${pkgdir}/usr/share/doc/sq"
  install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/sq/README.md"
  mkdir -p "${pkgdir}/usr/share/man/man1"
  install -Dm644 "./manpages/sq.1.gz" "${pkgdir}/usr/share/man/man1/sq.1.gz"
}