summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7f4cddd73a196c040c5a56c3c547b29f487dd3c (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: jonah <me@jon4hz.io>

pkgname='kaspa_exporter-bin'
pkgver=0.1.0
pkgrel=1
pkgdesc='wishlist using netbox as inventory source'
url='https://jon4hz.io'
arch=('aarch64' 'armv7h' 'i686' 'x86_64')
license=('MIT')
provides=('kaspa_exporter')
conflicts=('kaspa_exporter')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/jon4hz/kaspa_exporter/releases/download/v0.1.0/kaspa_exporter-v0.1.0-linux-arm64.tar.gz")
sha256sums_aarch64=('1fdad777fae0bbdee18ee56974a2cfecbe2b5b3f1dc3c2bae3683f96aed1fea3')

source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::https://github.com/jon4hz/kaspa_exporter/releases/download/v0.1.0/kaspa_exporter-v0.1.0-linux-armv7.tar.gz")
sha256sums_armv7h=('602b9c9312c5c90c0da40a7e6ed49a10f620754ebbadc963eff72a2aa9d23ce7')

source_i686=("${pkgname}_${pkgver}_i686.tar.gz::https://github.com/jon4hz/kaspa_exporter/releases/download/v0.1.0/kaspa_exporter-v0.1.0-linux-386.tar.gz")
sha256sums_i686=('2c133353708f70a8fc499497cc760c23c9b8a66c61ee4b2ebc359961819d009a')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/jon4hz/kaspa_exporter/releases/download/v0.1.0/kaspa_exporter-v0.1.0-linux-amd64.tar.gz")
sha256sums_x86_64=('74164cf5792f05351ef1989790a741951a3f731de6f939211c599fe6acc283bf')

package() {
  # bin
  install -Dm755 "./kaspa_exporter" "${pkgdir}/usr/bin/kaspa_exporter"
  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/kaspa_exporter/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/kaspa_exporter.bash" "${pkgdir}/usr/share/bash-completion/completions/kaspa_exporter"
  install -Dm644 "./completions/kaspa_exporter.zsh" "${pkgdir}/usr/share/zsh/site-functions/_kaspa_exporter"
  install -Dm644 "./completions/kaspa_exporter.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/kaspa_exporter.fish"
  # man pages
  install -Dm644 "./manpages/kaspa_exporter.1.gz" "${pkgdir}/usr/share/man/man1/kaspa_exporter.1.gz"
}