diff options
-rw-r--r-- | testing/perl-class-inner/APKBUILD | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/testing/perl-class-inner/APKBUILD b/testing/perl-class-inner/APKBUILD index e00a0694a3..ab01e8f598 100644 --- a/testing/perl-class-inner/APKBUILD +++ b/testing/perl-class-inner/APKBUILD @@ -4,43 +4,34 @@ pkgname=perl-class-inner _pkgreal=Class-Inner pkgver=0.200001 -pkgrel=0 +pkgrel=1 pkgdesc="An implementation of Java like inner classes" url="http://search.cpan.org/dist/Class-Inner/" arch="noarch" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends="" -cpancheckdepends="" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" -checkdepends="$cpancheckdepends" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/A/AR/ARUNBEAR/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_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}') make } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } |