diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:34:42 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 20:34:42 +0100 |
commit | 45af3cfdaa663e6ffa99e6210e5467b4dbd3e562 (patch) | |
tree | 0b9b97d414adc7d34e7282d2351e8cda83aef85a | |
parent | 246a4d4147628aabaef3b500be26bd6cacefb654 (diff) | |
download | aports-45af3cfdaa663e6ffa99e6210e5467b4dbd3e562.zip |
community/perl-text-glob: modernize
-rw-r--r-- | community/perl-text-glob/APKBUILD | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/community/perl-text-glob/APKBUILD b/community/perl-text-glob/APKBUILD index 3a4aac7d88d..7cf831fa6c9 100644 --- a/community/perl-text-glob/APKBUILD +++ b/community/perl-text-glob/APKBUILD @@ -4,43 +4,37 @@ pkgname=perl-text-glob _pkgreal=Text-Glob pkgver=0.11 -pkgrel=1 +pkgrel=2 pkgdesc="match globbing patterns against text" -url="http://search.cpan.org/dist/Text-Glob/" +url="https://metacpan.org/release/Text-Glob" arch="noarch" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends=" " -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends perl-module-build" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl" +makedepends="perl-dev perl-module-build" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/Text-Glob-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$builddir" if [ -e Build.PL ]; then - perl Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor else - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor fi } build() { - cd "$builddir" make } check() { - cd "$builddir" - make test + make test } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install - find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="20322fee3f56ee7e65f0f8e5371d9dbbe89895d8b9c9207486e7934e29bd883fb557c9765e406f85f56b67019293d82a0318ded83a9387b164cb5e8f58bef0cb Text-Glob-0.11.tar.gz" |