summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a2cc4761b95c890c3930cff1628cc6d16f1ab02 (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: Frank Seifferth <frankseifferth@posteo.net>

pkgname=tmux-xpanes
pkgver=4.1.3
pkgrel=2
pkgdesc='Create multiple panes with ultimate terminal divider.'
arch=('any')
url='https://github.com/greymd/tmux-xpanes'
depends=('tmux')
license=('MIT')
source=("https://github.com/greymd/tmux-xpanes/archive/v$pkgver.tar.gz")
md5sums=('ce9caf60170e8f0555b204aba7747fc0')

build() {
    cd "$srcdir/tmux-xpanes-$pkgver"
    test -f man/xpanes.1.gz || gzip man/xpanes.1
}

package() {
    install -D -m 755 "$srcdir/tmux-xpanes-$pkgver/bin/xpanes" "$pkgdir/usr/bin/xpanes"
    install -D -m 755 "$srcdir/tmux-xpanes-$pkgver/bin/tmux-xpanes" "$pkgdir/usr/bin/tmux-xpanes"
    install -D -m 644 "$srcdir/tmux-xpanes-$pkgver/man/xpanes.1.gz" "$pkgdir/usr/share/man/man1/xpanes.1.gz"
    ln -s "xpanes.1.gz" "$pkgdir/usr/share/man/man1/tmux-xpanes.1.gz"
    install -D -m 644 "$srcdir/tmux-xpanes-$pkgver/completion/zsh/_xpanes" "$pkgdir/usr/share/zsh/site-functions/_xpanes"
    ln -s "_xpanes" "$pkgdir/usr/share/zsh/site-functions/_tmux-xpanes"
}