summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-mime-types/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-mime-types/APKBUILD b/user/perl-mime-types/APKBUILD
new file mode 100644
index 000000000..56e6c0faf
--- /dev/null
+++ b/user/perl-mime-types/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-mime-types
+_pkgname=MIME-Types
+pkgver=2.17
+pkgrel=0
+pkgdesc="Definition of MIME types for Perl"
+url="https://metacpan.org/release/MIME-Types"
+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/M/MA/MARKOV/MIME-Types-$pkgver.tar.gz"
+builddir="$srcdir/MIME-Types-$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="a834ddfa70fbaa5688a2a35626c489a48448e273638312609faaa8fbf07ba656254d1f907ba5f25518e93fd62b7b9265eec700c38c8446876dca24e07d8b15c4 MIME-Types-2.17.tar.gz"