diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-11-20 16:36:57 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-11-20 16:36:57 +0200 |
commit | 20f4684c1e3789331b8389c3f1c69342f22de490 (patch) | |
tree | 9a84ec02453e3b680da4b9a73dea653c353b3834 | |
parent | 2a87a1a0aa19dd42e83c58d00865f71acedb65cc (diff) | |
download | aports-20f4684c1e3789331b8389c3f1c69342f22de490.tar.bz2 aports-20f4684c1e3789331b8389c3f1c69342f22de490.tar.xz |
main/perl-mime-types: upgrade to 2.14, modernize
-rw-r--r-- | main/perl-mime-types/APKBUILD | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/main/perl-mime-types/APKBUILD b/main/perl-mime-types/APKBUILD index 538ae93b1d..312eebdbb3 100644 --- a/main/perl-mime-types/APKBUILD +++ b/main/perl-mime-types/APKBUILD @@ -1,41 +1,48 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=perl-mime-types _pkgreal=MIME-Types -pkgver=2.13 +pkgver=2.14 pkgrel=0 pkgdesc="Definition of MIME types" url="http://search.cpan.org/dist/MIME-Types/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" +cpancheckdepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + default_prepare + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="f2892ae9e6ea660a58746699c3924817 MIME-Types-2.13.tar.gz" -sha256sums="99c3376357bbe22cc8b6c78f560aa18d81621287695cd629008a6c4e66b77bf8 MIME-Types-2.13.tar.gz" -sha512sums="675d89faa03e78162a2441d0fd9c986a77e44dbfde1e2f20ee501de8f530deb51cc5705481b0e7450e1e1c0f7f680572be7f661456477c8a34818be89a0acc0a MIME-Types-2.13.tar.gz" +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="dc12df5408107cd24819affe1e374a9eba801ebd39ad5c14c40ed46e51d88379c53f4a645a5149842c92e348b3cb80b6784976d71f0dd7f73195072b668926e0 MIME-Types-2.14.tar.gz" |