summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 23:17:37 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-17 23:17:37 +0000
commitf0109cf080415fd0b2e0f0e3888d78932fed358d (patch)
tree38c7407321b2bd1ff751e7df62f2819d403761e6 /user
parentdf95537598979ad86622492a474b4b48b9ac2dff (diff)
downloadpackages-f0109cf080415fd0b2e0f0e3888d78932fed358d.tar.gz
packages-f0109cf080415fd0b2e0f0e3888d78932fed358d.tar.bz2
packages-f0109cf080415fd0b2e0f0e3888d78932fed358d.tar.xz
packages-f0109cf080415fd0b2e0f0e3888d78932fed358d.zip
user/perl-mime-types: new package
Diffstat (limited to 'user')
-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"