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

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

---
 main/protobuf/APKBUILD | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/main/protobuf/APKBUILD b/main/protobuf/APKBUILD
index 05aa015..dc3a520 100644
--- a/main/protobuf/APKBUILD
+++ b/main/protobuf/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=protobuf
 pkgver=2.6.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Library for extensible, efficient structure packing"
 url="http://code.google.com/p/protobuf/"
 arch="all"
@@ -11,7 +11,7 @@ depends=
 depends_dev="zlib-dev"
 makedepends="$depends_dev autoconf automake libtool"
 install=""
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-vim"
 source="protobuf-$pkgver.tar.gz::https://github.com/google/protobuf/archive/v$pkgver.tar.gz"
 
 _builddir="$srcdir"/$pkgname-$pkgver
@@ -51,6 +51,15 @@ py() {
 	install -m644 google "$subpkgdir"/usr/lib/python2.6/site-packages
 }
 
+vim() {
+	depends=""
+	pkgdesc="Vim syntax for $pkgname"
+	arch="noarch"
+
+	install -Dm644 "$_builddir"/editors/proto.vim \
+		"$subpkgdir"/usr/share/vim/vimfiles/syntax/proto.vim
+}
+
 md5sums="af05b2cca289f7b86eef2734a0cdc8b9  protobuf-2.6.1.tar.gz"
 sha256sums="2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1  protobuf-2.6.1.tar.gz"
 sha512sums="8a6337e007572b1c5688ad178a18e98e94e62112bbc4ae558b4a3f8fa7f93a9643929ccaf31b94490c9f601328ae3f48dab7b702a2b9c989a5254514c78a4d1e  protobuf-2.6.1.tar.gz"
-- 
2.5.0

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