summaryrefslogblamecommitdiff
path: root/user/perl-email-mime-contenttype/APKBUILD
blob: bccd41537408e16caf56c2bb1868e807c7f86813 (plain) (tree)

































                                                                                                                                                                                  
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-email-mime-contenttype
_pkgname=Email-MIME-ContentType
pkgver=1.022
pkgrel=0
pkgdesc="Parse MIME Content-Type/Disposition headers in Perl"
url="https://metacpan.org/release/Email-MIME-ContentType"
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/R/RJ/RJBS/Email-MIME-ContentType-$pkgver.tar.gz"
builddir="$srcdir/Email-MIME-ContentType-$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="38561922e0dbc180ac24003a3b64ef39e25a5607bbedc75a3e4580490ab84e02bfd5165225eff4884112cf1f82ec46ee62f31c047acea6b9a3cca390deb965be  Email-MIME-ContentType-1.022.tar.gz"