summaryrefslogtreecommitdiff
path: root/user/perl-email-abstract/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-email-abstract/APKBUILD')
-rw-r--r--user/perl-email-abstract/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-email-abstract/APKBUILD b/user/perl-email-abstract/APKBUILD
new file mode 100644
index 000000000..2df402287
--- /dev/null
+++ b/user/perl-email-abstract/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-email-abstract
+_pkgname=Email-Abstract
+pkgver=3.008
+pkgrel=0
+pkgdesc="Unified interface to email representations in Perl"
+url="https://metacpan.org/release/Email-Abstract"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-email-simple perl-mro-compat perl-module-pluggable"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-Abstract-$pkgver.tar.gz"
+builddir="$srcdir/Email-Abstract-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="efead64612562fb9d644fa830b2f29e0701af0f3ddeb118992badff7c7a45cb569ad4644a7b226cc625cdabfb3f5db155284eb68042928265bfc5c230f4bf40a Email-Abstract-3.008.tar.gz"