summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a9d6470ee252393ef10ffa657ace0b2ec6caea6 (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Devon T. Bautista <devonb@lanl.gov>

pkgname='ochami-bin'
pkgver=0.0.8
pkgrel=1
pkgdesc='Command line interface for OpenCHAMI services'
url='https://github.com/OpenCHAMI/ochami'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('ochami')
conflicts=('ochami-git')
optdepends=('bash-completion: for bash completion support' 'jq: for pretty-printing JSON' 'zsh-completions: for zsh completion support')
backup=('etc/ochami/config.yaml')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/OpenCHAMI/ochami/releases/download/v0.0.8/ochami_Linux_arm64.tar.gz")
sha256sums_aarch64=('29872ca20065c8795cc7b678648d9a218d2cd14822b95392aa2bd9b4fd1323d9')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/OpenCHAMI/ochami/releases/download/v0.0.8/ochami_Linux_x86_64.tar.gz")
sha256sums_x86_64=('bb4ff4236a349335fe408b6ed8e9cbd3021e9bc6a9d2ff52e1cb6d668d73e1f5')

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

  # License
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/ochami/LICENSE"

  # Completions
  install -Dm644 "./completions/ochami.bash" "${pkgdir}/usr/share/bash-completion/completions/ochami"
  install -Dm644 "./completions/ochami.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/ochami.fish"
  install -Dm644 "./completions/ochami.zsh" "${pkgdir}/usr/share/zsh/site-functions/_ochami"

  # Config
  install -Dm644 "./doc/config.example.yaml" "${pkgdir}/usr/share/doc/ochami/config.example.yaml"

  # Man pages
  mkdir -p "${pkgdir}/usr/share/man/man1"
  mkdir -p "${pkgdir}/usr/share/man/man5"
  install -Dm644 ./man/*.1 "${pkgdir}/usr/share/man/man1/"
  install -Dm644 ./man/*.5 "${pkgdir}/usr/share/man/man5/"
}