Subject: [alpine-aports] [PATCH] main/tmux: add vim subpackage

From: Sören Tempel <[email-masked]>
Date: Fri, 14 Aug 2015 00:52:09 +0200

---
 main/tmux/APKBUILD | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/main/tmux/APKBUILD b/main/tmux/APKBUILD
index 83f24eb..b160e9b 100644
--- a/main/tmux/APKBUILD
+++ b/main/tmux/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 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 \
-- 
2.5.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---