diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-05-26 17:13:51 -0300 |
---|---|---|
committer | TBK <tbk@jjtc.eu> | 2019-05-27 02:33:43 +0200 |
commit | e4f5d1657f16118e2155a035295a3ae60809086a (patch) | |
tree | f445779730ef83b2bacf2f5360661dfdb6816197 /testing/perl-autobox | |
parent | ba290ff3bfbc6c5116512cf334fe2aba0c84f443 (diff) | |
download | aports-e4f5d1657f16118e2155a035295a3ae60809086a.tar.bz2 aports-e4f5d1657f16118e2155a035295a3ae60809086a.tar.xz |
testing/perl-autobox: modernize, fix license
Closes: GH-8157
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 } |