Commit fed142ab authored by Timothy Legge's avatar Timothy Legge Committed by Leo

community/perl-email-mime-contenttype: upgrade to 1.024 and modernize

parent 3114c5d7
# Automatically generated by apkbuild-cpan, template 1
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-email-mime-contenttype
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Email-MIME-ContentType
pkgver=1.022
pkgrel=1
pkgdesc="Parse a MIME Content-Type Header"
pkgver=1.024
pkgrel=0
pkgdesc="parse and build a MIME Content-Type or Content-Disposition Header"
url="https://metacpan.org/release/Email-MIME-ContentType/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=" perl-capture-tiny "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-text-unidecode"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MIME-ContentType-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
check() {
cd "$builddir"
make test
}
prepare() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="38561922e0dbc180ac24003a3b64ef39e25a5607bbedc75a3e4580490ab84e02bfd5165225eff4884112cf1f82ec46ee62f31c047acea6b9a3cca390deb965be Email-MIME-ContentType-1.022.tar.gz"
sha512sums="054d81ff9c4aa095e05a1bba287a26d4f7e8de3cec4d47b6cf7314acb04bb08270fac9c58d2b85e3ee5a02afa78d5f364717ff2b5793a1fe7ea1f2fef2812cfd Email-MIME-ContentType-1.024.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment