summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8cd942adeb58030d29496f645e6537a9d954ff0 (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Johannes Bruederl <johannes.bruederl@gmail.com>
# Contributor: Michał Lisowski <lisu@riseup.net>

pkgname='kaf-bin'
pkgver=0.2.3
pkgrel=1
pkgdesc='Kafka CLI inspired by kubectl & docker'
url=''
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('kaf-bin')
conflicts=('kaf-bin' 'kaf')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/birdayz/kaf/releases/download/v0.2.3/kaf_0.2.3_Linux_arm64.tar.gz")
sha256sums_aarch64=('f2581c0e79a476e0e374a193a470cef5da45e19a3cd6863fcdbcaa9130dd00b0')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/birdayz/kaf/releases/download/v0.2.3/kaf_0.2.3_Linux_x86_64.tar.gz")
sha256sums_x86_64=('2159bc572288943692895136827978e020d4e342c8ea3af3be11bb2cde2ed185')

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

  # completions
  # bash
  mkdir -p "${pkgdir}/etc/bash_completion.d"
  ./kaf completion bash > "${pkgdir}/etc/bash_completion.d/kaf"

  # zsh
  mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
  ./kaf completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_kaf"

  # Fish
  mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d"
  ./kaf completion fish > ${pkgdir}/usr/share/fish/vendor_completions.d/kaf.fish
}