diff options
author | Timo Teräs <timo.teras@iki.fi> | 2018-01-04 12:32:36 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-01-04 12:32:36 +0000 |
commit | 1ffe7ef4ddd66831381254e52347f81599b13c81 (patch) | |
tree | c7430dbf7d4d5c37ac35e3c9bc6c391f603cb436 /main/perl-class-container | |
parent | fe7284647ed40016f2a83b7fb44628db17e798fa (diff) | |
download | aports-1ffe7ef4ddd66831381254e52347f81599b13c81.tar.bz2 aports-1ffe7ef4ddd66831381254e52347f81599b13c81.tar.xz |
main/perl-class-container: upgrade to 0.13
Diffstat (limited to 'main/perl-class-container')
-rw-r--r-- | main/perl-class-container/APKBUILD | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/main/perl-class-container/APKBUILD b/main/perl-class-container/APKBUILD index b6f8f7fc25..03c3a19c84 100644 --- a/main/perl-class-container/APKBUILD +++ b/main/perl-class-container/APKBUILD @@ -1,37 +1,47 @@ -# 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-class-container _pkgreal=Class-Container -pkgver=0.12 -pkgrel=1 +pkgver=0.13 +pkgrel=0 pkgdesc="Glues object frameworks together transparently" url="http://search.cpan.org/dist/Class-Container/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-params-validate" cpanmakedepends="" +cpancheckdepends="" depends="$cpandepends" -makedepends="perl-dev perl-module-implementation $cpanmakedepends" +makedepends="perl-dev perl-module-build $cpanmakedepends" +checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - perl Build.PL installdirs=vendor || return 1 + default_prepare + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + perl Build.PL installdirs=vendor } build() { - cd "$_builddir" - ./Build && ./Build test + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + ./Build } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="7342154422de316c10fbc78d894e999dbcd8097f67fe9a5aafcf27a407c08988dde8d42dac89f535140c44a52892435da15c77fb43a1d7c3558d273e00244720 Class-Container-0.12.tar.gz" +check() { + cd "$builddir" + ./Build test +} + +sha512sums="c51284e377942930384e22ff8d17489fa279eecc87a68acd88bffd8a134d2f2930b40008df98d12bddc46845175d2ce9f630522379692c2f630f2618928c6acd Class-Container-0.13.tar.gz" |