diff options
Diffstat (limited to 'testing/perl-autobox')
-rw-r--r-- | testing/perl-autobox/APKBUILD | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/testing/perl-autobox/APKBUILD b/testing/perl-autobox/APKBUILD index cf9f9524dd..dd248cd83b 100644 --- a/testing/perl-autobox/APKBUILD +++ b/testing/perl-autobox/APKBUILD @@ -4,39 +4,35 @@ pkgname=perl-autobox _pkgreal=autobox pkgver=3.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="call methods on native types" url="http://search.cpan.org/dist/autobox/" arch="all" -license="GPL PerlArtistic" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl-scope-guard" cpanmakedepends="perl-ipc-system-simple perl-test-fatal" depends="$cpandepends" -makedepends="perl-dev perl-test-pod perl-scope-guard $cpanmakedepends" +makedepends="perl-dev perl-test-pod $cpanmakedepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/$_pkgreal-v$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-v$pkgver" prepare() { - cd "$builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + 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}') make } check() { - cd "$builddir" make test } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |