aboutsummaryrefslogtreecommitdiffstats
path: root/main/tmux
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-08-14 00:52:09 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2015-08-14 06:13:41 +0000
commitb3832efdbd4d98c35ce56584bd5fbe073fca8e9c (patch)
tree680f0ccdf6c46d60ca9586a3996e03cde0ada92e /main/tmux
parentbe15bb0f65699989158c1a24f94c87faf0e8677b (diff)
downloadaports-b3832efdbd4d98c35ce56584bd5fbe073fca8e9c.tar.bz2
aports-b3832efdbd4d98c35ce56584bd5fbe073fca8e9c.tar.xz
main/tmux: add vim subpackage
Diffstat (limited to 'main/tmux')
-rw-r--r--main/tmux/APKBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/main/tmux/APKBUILD b/main/tmux/APKBUILD
index 83f24ebb2f..b160e9b5db 100644
--- a/main/tmux/APKBUILD
+++ b/main/tmux/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tmux
pkgver=2.0
-pkgrel=0
+pkgrel=1
pkgdesc="Tool to control multiple terminals from a single terminal"
url="http://tmux.sourceforge.net/"
arch="all"
@@ -10,7 +10,10 @@ license="BSD"
depends="ncurses-terminfo"
makedepends="ncurses-dev libevent-dev autoconf automake bsd-compat-headers"
install=
-subpackages="$pkgname-doc $pkgname-bash-completion:completion"
+subpackages="
+ $pkgname-doc
+ $pkgname-vim:vim
+ $pkgname-bash-completion:completion"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
@@ -39,9 +42,18 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
+vim() {
+ depends=""
+ pkgdesc="Vim syntax for $pkgname"
+ arch="noarch"
+
+ install -Dm644 "$_builddir"/examples/$pkgname.vim \
+ "$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
+}
+
completion() {
depends=""
- pkgdesc="Bash completion script for tmux"
+ pkgdesc="Bash completion script for $pkgname"
arch="noarch"
install -Dm644 "$srcdir"/tmux-$pkgver/examples/bash_completion_tmux.sh \