summaryrefslogtreecommitdiff
path: root/user/perl-mime-types/APKBUILD
blob: c85e6e741ff253866786e72a7bf9f067cfadbdd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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.24
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="5f1ba7b461eb18438b7e1bcc49291d0a506d937f0020f2a8b17594e4de626110f8d4b4a767d78b491ae788b6a6ea531d8ce2c2245cc614700ac8fa6d320d2bd7  MIME-Types-2.24.tar.gz"