summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Seifferth2020-06-03 20:53:54 +0100
committerFrank Seifferth2020-06-03 20:53:54 +0100
commit785e7fe25457669e19fb15882f0a95295c83dcae (patch)
tree1411a76958491eff274f882581bd91571b7aec67
parent5ee1cf4ba72dabc02f797d45bce0ed6e85ab0c74 (diff)
downloadaur-785e7fe25457669e19fb15882f0a95295c83dcae.tar.gz
Add zsh completion scripts and fix symlinks
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD13
2 files changed, 11 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 19cbc0f2521..471a1710e2b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tmux-xpanes
pkgdesc = Create multiple panes with ultimate terminal divider.
pkgver = 4.1.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/greymd/tmux-xpanes
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index a6749d73573..6583376183e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=tmux-xpanes
pkgver=4.1.2
-pkgrel=1
+pkgrel=2
pkgdesc='Create multiple panes with ultimate terminal divider.'
arch=('any')
url='https://github.com/greymd/tmux-xpanes'
@@ -11,9 +11,16 @@ license=('MIT')
source=("https://github.com/greymd/tmux-xpanes/archive/v$pkgver.tar.gz")
md5sums=('c649d299411db7282d74d67ab37b4f6f')
+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" "$pkgdir/usr/share/man/man1/xpanes.1.gz"
- install -D -m 644 "$srcdir/tmux-xpanes-$pkgver/man/tmux-xpanes.1" "$pkgdir/usr/share/man/man1/tmux-xpanes.1.gz"
+ 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"
}