Subject: [alpine-aports] [PATCH] main/perl-mail-spf: remove /usr/bin, /usr/sbin scripts because of conflict with /main/libspf library

From: Valery Kartel <[email-masked]>
Date: Mon, 14 Dec 2015 01:52:53 +0200

---
 main/perl-mail-spf/APKBUILD | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/main/perl-mail-spf/APKBUILD b/main/perl-mail-spf/APKBUILD
index 94dd3f8..b7f34e6 100644
--- a/main/perl-mail-spf/APKBUILD
+++ b/main/perl-mail-spf/APKBUILD
@@ -1,9 +1,10 @@
+# Contributor: Valery Kartel <[email-masked]>
 # Contributor: Leonardo Arena <[email-masked]>
 # Maintainer:  Leonardo Arena <[email-masked]>
 pkgname=perl-mail-spf
 _realname=Mail-SPF
 pkgver=2.9.0
-pkgrel=1
+pkgrel=2
 pkgdesc="An object-oriented implementation of Sender Policy Framework"
 url="http://search.cpan.org/~jmehnle/Mail-SPF-v2.006/"
 arch="noarch"
@@ -34,6 +35,9 @@ build() {
 package() {
 	cd "$_builddir"
 	make DESTDIR="$pkgdir" install
+	mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl
+	rm -fr "$pkgdir"/usr/share/perl5
+	rm -fr "$pkgdir"/usr/bin "$pkgdir"/usr/sbin
 }
 
 md5sums="664e20d79c87fa505080f362e827dace  Mail-SPF-v2.9.0.tar.gz"
-- 
2.6.3

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