Mail archive
alpine-aports

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

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
Date: Fri, 14 Aug 2015 00:43:13 +0200

---
 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
_at_@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <ncopa_at_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"
_at_@ -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
_at_@ -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_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Aug 14 2015 - 00:43:13 GMT