diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-03 07:50:12 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-03 07:50:12 -0300 |
commit | d2a1ffdaa3e8c19dcdee06932bb14ce0af6f0f80 (patch) | |
tree | ae04ee0994c330cab145c751598dc079dcee8b05 /testing/perl-statistics-descriptive | |
parent | bfd0f036a82f511f2278466c21b07d8196a12efb (diff) | |
download | aports-d2a1ffdaa3e8c19dcdee06932bb14ce0af6f0f80.tar.bz2 aports-d2a1ffdaa3e8c19dcdee06932bb14ce0af6f0f80.tar.xz |
testing/perl-statistics-descriptive: fix url fix license
Diffstat (limited to 'testing/perl-statistics-descriptive')
-rw-r--r-- | testing/perl-statistics-descriptive/APKBUILD | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/testing/perl-statistics-descriptive/APKBUILD b/testing/perl-statistics-descriptive/APKBUILD index 7126095162..418e5258d9 100644 --- a/testing/perl-statistics-descriptive/APKBUILD +++ b/testing/perl-statistics-descriptive/APKBUILD @@ -4,34 +4,34 @@ pkgname=perl-statistics-descriptive _pkgreal=Statistics-Descriptive pkgver=3.0702 -pkgrel=0 +pkgrel=1 pkgdesc="Module of basic descriptive statistical functions." -url="http://search.cpan.org/dist/Statistics-Descriptive/" +url="https://metacpan.org/release/Statistics-Descriptive" arch="noarch" -license="GPL PerlArtistic" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl-list-moreutils perl-module-build perl-test-pod perl-test-pod-coverage" -cpanmakedepends="" depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +makedepends="perl-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - perl Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor } build() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + ./Build +} + +check() { + ./Build test } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |