Mail archive
alpine-aports

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

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
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
_at_@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <ncopa_at_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"
_at_@ -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"
_at_@ -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:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Aug 14 2015 - 00:52:09 GMT