diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-03 07:52:48 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-03 07:52:48 -0300 |
commit | f8384210f0e620adb0812d66950f2cdd15c01cae (patch) | |
tree | 36e0bcc3d1609fea5ce7f8827b409d40ec82074d /testing | |
parent | 1748dedd8aa50fb577a7084e361cdd8dc87623eb (diff) | |
download | aports-f8384210f0e620adb0812d66950f2cdd15c01cae.tar.bz2 aports-f8384210f0e620adb0812d66950f2cdd15c01cae.tar.xz |
testing/perl-sort-naturally: fix url fix license
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-sort-naturally/APKBUILD | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/testing/perl-sort-naturally/APKBUILD b/testing/perl-sort-naturally/APKBUILD index f8834f5237..3a6da4e4dd 100644 --- a/testing/perl-sort-naturally/APKBUILD +++ b/testing/perl-sort-naturally/APKBUILD @@ -4,43 +4,34 @@ pkgname=perl-sort-naturally _pkgreal=Sort-Naturally pkgver=1.03 -pkgrel=0 +pkgrel=1 pkgdesc="sort lexically, but sort numeral parts numerically" -url="http://search.cpan.org/dist/Sort-Naturally/" +url="https://metacpan.org/release/Sort-Naturally" 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/B/BI/BINGOS/$_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 } |