Mail archive
alpine-aports

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

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