summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6c3425af2d2fa3e16fadc735cd478cf6d849256 (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
# Maintainer: Alif <alive4ever at live dot com>

pkgname=tmux-bash-completion
pkgdesc="Bash completion for tmux"
pkgver=r7.e0f7021
pkgrel=1
arch=("any")
url="https://github.com/imomaliev/tmux-bash-completion"
license=("custom")
makedepends=('git')
depends=("bash-completion" "tmux")
source=('git+https://github.com/imomaliev/tmux-bash-completion.git')
md5sums=('SKIP')

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

package() {
	cd "$pkgname/completions"
	for file in $(ls); do
		install -Dm644 $file "$pkgdir/usr/share/bash-completion/completions/$file"
	done
}