summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeini2022-06-04 14:55:23 +0300
committerBeini2022-06-04 14:55:23 +0300
commit6442165d3ff86b37b26a4ec0831a00a33aa4d6c2 (patch)
tree1761f3b8c938dd7bbbf62480ea0b000bf2f9a431
downloadaur-perl-mail-mboxparser.tar.gz
new package
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD46
-rw-r--r--perl-Mail-MboxParser-0.55-Fix-garbled-attachment-name-RT-66576.patch30
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..18cf0a9263a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = perl-mail-mboxparser
+ pkgdesc = Module for working with UNIX-flavoured mailboxes
+ pkgver = 0.55
+ pkgrel = 1
+ url = https://metacpan.org/release/Mail-MboxParser
+ arch = any
+ license = GPL
+ license = PerlArtistic
+ depends = perl
+ depends = perl-mime-tools
+ optdepends = perl-mail-mbox-messageparser
+ optdepends = perl-uri-find: If you want to use Mail::MboxParser::Mail::Body->extract_urls
+ options = !emptydirs
+ options = purge
+ source = http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Mail-MboxParser-0.55.tar.gz
+ source = perl-Mail-MboxParser-0.55-Fix-garbled-attachment-name-RT-66576.patch
+ sha256sums = 33f025e9b10956b9a58ef01774b92b790aacca5fb00b1c755ada77ad4e5c7d3b
+ sha256sums = c0d0f6f6da5324dabe66a0cd37f304ce7b222c0644b434367647e1c37d1fa404
+
+pkgname = perl-mail-mboxparser
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e34dfa80f21
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Beini <bane at iki dot fi>
+pkgname=perl-mail-mboxparser
+pkgver=0.55
+pkgrel=1
+pkgdesc='Module for working with UNIX-flavoured mailboxes'
+_dist=Mail-MboxParser
+arch=('any')
+url="https://metacpan.org/release/$_dist"
+license=('GPL' 'PerlArtistic')
+depends=('perl' 'perl-mime-tools')
+optdepends=('perl-mail-mbox-messageparser'
+ 'perl-uri-find: If you want to use Mail::MboxParser::Mail::Body->extract_urls')
+options=('!emptydirs' purge)
+source=("http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/$_dist-$pkgver.tar.gz"
+ "perl-Mail-MboxParser-0.55-Fix-garbled-attachment-name-RT-66576.patch")
+sha256sums=('33f025e9b10956b9a58ef01774b92b790aacca5fb00b1c755ada77ad4e5c7d3b'
+ 'c0d0f6f6da5324dabe66a0cd37f304ce7b222c0644b434367647e1c37d1fa404')
+
+prepare() {
+ cd "$srcdir/$_dist-$pkgver"
+ patch --forward --strip=1 --input="${srcdir}/perl-Mail-MboxParser-0.55-Fix-garbled-attachment-name-RT-66576.patch"
+}
+
+
+build() {
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ /usr/bin/perl Makefile.PL
+ make
+}
+
+check() {
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ make test
+}
+
+package() {
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/perl-Mail-MboxParser-0.55-Fix-garbled-attachment-name-RT-66576.patch b/perl-Mail-MboxParser-0.55-Fix-garbled-attachment-name-RT-66576.patch
new file mode 100644
index 00000000000..bdfe06f780e
--- /dev/null
+++ b/perl-Mail-MboxParser-0.55-Fix-garbled-attachment-name-RT-66576.patch
@@ -0,0 +1,30 @@
+From 122efb9b43fe3b918190f1e72a8055240571d58b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Thu, 23 Jun 2011 09:13:12 +0200
+Subject: [PATCH] Fix garbled attachment name (RT#66576)
+
+---
+ t/10_qpnames.t | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/t/10_qpnames.t b/t/10_qpnames.t
+index 7c9b42c..4db5af6 100755
+--- a/t/10_qpnames.t
++++ b/t/10_qpnames.t
+@@ -1,3 +1,4 @@
++use utf8;
+ use Test;
+ use File::Spec;
+ use strict;
+@@ -12,7 +13,7 @@ my ($msg) = $mb->get_messages;
+
+ my $att = $msg->get_attachments;
+ skip(&Mail::MboxParser::Mail::HAVE_MIMEWORDS ? 0 : "Mime::Words not installed",
+- defined $msg->get_attachments("test characters.txt"));
++ defined $msg->get_attachments("test şğüıçö characters.txt"));
+
+
+
+--
+1.7.5.4
+