summaryrefslogblamecommitdiff
path: root/user/perl-mime-types/APKBUILD
blob: 6b004243a5067be81843e6cda8287e908ed44184 (plain) (tree)
1
2
3
4
5
6
7


                                                                   



                               





                                             
              

                          

                                                                                        

         




                                                                 



                 




                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-mime-types
_pkgreal=MIME-Types
_author=MARKOV
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
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="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="a834ddfa70fbaa5688a2a35626c489a48448e273638312609faaa8fbf07ba656254d1f907ba5f25518e93fd62b7b9265eec700c38c8446876dca24e07d8b15c4  MIME-Types-2.17.tar.gz"