summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d2d60c7c18dad547d66880ce7ae2183a4a47dd9 (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
#!/usr/bin/env bash
# shellcheck disable=SC2034
# Maintainer: Chmouel Boudjnah <chmouel@chmouel.com>
pkgname=tmux-fingers
pkgver=2.6.2
pkgrel=1
pkgdesc="A fast and powerful way to navigate and copy text in tmux"
arch=('x86_64')
url="https://github.com/Morantron/tmux-fingers"
license=('MIT')
depends=('tmux>=3.0' 'bash')
makedepends=('crystal' 'shards')
keywords=('tmux' 'plugin' 'fingers' 'productivity' 'crystal')
source=("https://codeload.github.com/Morantron/${pkgname}/tar.gz/${pkgver}")
sha256sums=('457dba72bcc60c86661b1532c55d1a88e8442e2da836247607b359b4b584ff0a')

build() {
  cd "${pkgname}-${pkgver}" || exit
  shards install
  mkdir -p bin
  crystal build --release -o bin/tmux-fingers src/fingers.cr
  strip bin/tmux-fingers
}

package() {
  cd "${pkgname}-${pkgver}" || exit
  install -Dm755 "bin/tmux-fingers" "${pkgdir}/usr/bin/tmux-fingers"
  install -Dm644 "tmux-fingers.tmux" "${pkgdir}/usr/share/tmux-plugins/tmux-fingers/tmux-fingers.tmux"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/tmux-fingers/LICENSE"
}