From f0109cf080415fd0b2e0f0e3888d78932fed358d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 17 Nov 2018 23:17:37 +0000 Subject: user/perl-mime-types: new package --- user/perl-mime-types/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-mime-types/APKBUILD (limited to 'user/perl-mime-types') 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 +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2