summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d2461b903de7116fad3ded6e6df45d439ffab38 (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
#!/hint/bash -e
# Maintainer: Adrien Smith <adrien@panissupraomnia.dev>
# Contributor: Alif <alive4ever at live dot com>

pkgname=tmux-bash-completion-git
pkgver=r16.f5d5323
pkgrel=2
pkgdesc="Bash completion for tmux"
arch=('any')
url="https://github.com/imomaliev/tmux-bash-completion"
license=('GPL2')
depends=('bash-completion' 'tmux')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${pkgname%-git}"
  install -Dm644 -t "$pkgdir/usr/share/bash-completion/completions/" completions/*
}