Subject: [alpine-aports] [PATCH] main/msmtp: move locale specific data to lang subpackage, add config examples to doc subpackage

From: Valery Kartel <[email-masked]>
Date: Wed, 18 Nov 2015 12:35:03 +0200

---
 main/msmtp/APKBUILD | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/main/msmtp/APKBUILD b/main/msmtp/APKBUILD
index efa33d7..70f4c0a 100644
--- a/main/msmtp/APKBUILD
+++ b/main/msmtp/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=msmtp
 pkgver=1.6.2
-pkgrel=1
+pkgrel=2
 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 $pkgname-vim:vim"
+subpackages="$pkgname-doc $pkgname-lang $pkgname-vim:vim"
 source="http://downloads.sourceforge.net/project/msmtp/msmtp/$pkgver/msmtp-$pkgver.tar.xz"
 
 _builddir="$srcdir"/msmtp-$pkgver
@@ -53,6 +53,14 @@ vim() {
 		"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
 }
 
+doc() {
+	default_doc;
+	for i in system user; do
+		install -Dm644 "$_builddir"/doc/msmtprc-$i.example \
+			"$subpkgdir"/usr/share/doc/$pkgname/msmtprc-$i.example
+	done
+}
+
 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.6.3

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