summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6af388e430c5ad5819db75f864a865fb6bdaff7f (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Carlos Moro <carlos@gondor.es>

pkgname='llamaman-bin'
pkgver=0.11.0
pkgrel=1
pkgdesc='TUI manager for llama-server (llama.cpp). Pre-built binary release.'
url='https://github.com/cmoro-deusto/llamaman'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('llamaman')
conflicts=('llamaman')
optdepends=('wl-clipboard: clipboard support on Wayland' 'xclip: clipboard support on X11' 'llama.cpp: provides the llama-server binary' 'nvidia-utils: live NVIDIA GPU stats in the run-mode Hardware panel')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/cmoro-deusto/llamaman/releases/download/v${pkgver}/llamaman_${pkgver}_linux_arm64.tar.gz")
sha256sums_aarch64=('d45cd8a3f3c745946160d3318343f9984d1d8f31abb27b22c7f072e006ee9cc3')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/cmoro-deusto/llamaman/releases/download/v${pkgver}/llamaman_${pkgver}_linux_amd64.tar.gz")
sha256sums_x86_64=('cf68cdb1eaf97431e1b97f20c0ebb5172787144b2f3c16a66cbae94f4710248f')

package() {
  install -Dm755 "./llamaman" "${pkgdir}/usr/bin/llamaman"
  [ -f LICENSE ]   && install -Dm644 LICENSE   "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  [ -f README.md ] && install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"

  install -d "${pkgdir}/usr/share/bash-completion/completions"
  install -d "${pkgdir}/usr/share/zsh/site-functions"
  install -d "${pkgdir}/usr/share/fish/vendor_completions.d"
  "${pkgdir}/usr/bin/llamaman" --completion bash > "${pkgdir}/usr/share/bash-completion/completions/llamaman" || true
  "${pkgdir}/usr/bin/llamaman" --completion zsh  > "${pkgdir}/usr/share/zsh/site-functions/_llamaman"      || true
  "${pkgdir}/usr/bin/llamaman" --completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/llamaman.fish" || true
}