summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a9466340e05eba3848ad808b07cb0b379733e5f (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.2.5
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.2.5/kaspa_exporter-v0.2.5-linux-arm64.tar.gz")
sha256sums_aarch64=('4b456c006182ddb57aebef81a90d0ba76137a480f11c52abe32fcb42b2457653')

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

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

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

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