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

Sören Tempel
Details
Message ID
<1439505793-879-1-git-send-email-soeren+git@soeren-tempel.net>
Sender timestamp
1439505793
DKIM signature
missing
Download raw message
Patch: +11 -2
---
 main/msmtp/APKBUILD | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/main/msmtp/APKBUILD b/main/msmtp/APKBUILD
index 4573f7a..efa33d7 100644
--- a/main/msmtp/APKBUILD
+++ b/main/msmtp/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=msmtp
 pkgver=1.6.2
-pkgrel=0
+pkgrel=1
 pkgdesc="SMTP client with a sendmail compatible interface"
 url="http://msmtp.sourceforge.net/"
 arch="all"
@@ -10,7 +10,7 @@ license="GPLv3+"
 depends=
 makedepends="openssl-dev"
 install=
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-vim:vim"
 source="http://downloads.sourceforge.net/project/msmtp/msmtp/$pkgver/msmtp-$pkgver.tar.xz"
 
 _builddir="$srcdir"/msmtp-$pkgver
@@ -44,6 +44,15 @@ package() {
 	make DESTDIR="$pkgdir" install || return 1
 }
 
+vim() {
+	depends=""
+	pkgdesc="Vim syntax for $pkgname"
+	arch="noarch"
+
+	install -Dm644 "$_builddir"/scripts/vim/$pkgname.vim \
+		"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
+}
+
 md5sums="3baca93c7e5f1aa9d36a2e5b38739ab9  msmtp-1.6.2.tar.xz"
 sha256sums="2f6ecd7cbfadf548fd55205bd24cb63b84bcbb1185efed917dd7800595a48789  msmtp-1.6.2.tar.xz"
 sha512sums="74fb87cbf561e59059f7e5587167fb969348077b569d64dbdbfaa39820e6dc02968d77f3bc182fa714a198fa9eeebd80184b44961e2370be5660c8626b483854  msmtp-1.6.2.tar.xz"
-- 
2.5.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---