summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-email-mime-contenttype/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-email-mime-contenttype/APKBUILD b/user/perl-email-mime-contenttype/APKBUILD
new file mode 100644
index 000000000..bccd41537
--- /dev/null
+++ b/user/perl-email-mime-contenttype/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-email-mime-contenttype
+_pkgname=Email-MIME-ContentType
+pkgver=1.022
+pkgrel=0
+pkgdesc="Parse MIME Content-Type/Disposition headers in Perl"
+url="https://metacpan.org/release/Email-MIME-ContentType"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MIME-ContentType-$pkgver.tar.gz"
+builddir="$srcdir/Email-MIME-ContentType-$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="38561922e0dbc180ac24003a3b64ef39e25a5607bbedc75a3e4580490ab84e02bfd5165225eff4884112cf1f82ec46ee62f31c047acea6b9a3cca390deb965be Email-MIME-ContentType-1.022.tar.gz"