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



                               
           



                                             
                                       
              

                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-mime-types
_pkgreal=MIME-Types
_author=MARKOV
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.22
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-1.0+"
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="93dd5f54defcb2d9ff0e157b05c0f1e6ffd0d62422ae1b17f7f6deee4886d647cc4abf50dde584a65ee0472859ed224ed7dc491cb27066d15cf937fd7de80da7  MIME-Types-2.22.tar.gz"