diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-07-14 20:20:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-07-16 10:51:33 +0000 |
commit | afd10bb14dc8c1e3f282ee0c9a32044195b6f471 (patch) | |
tree | 92c0ef93252a34a3ced64d91385c818f192690b5 | |
parent | d6ff84bf422f5bc5a2792806626611f6191b4b55 (diff) | |
download | aports-afd10bb14dc8c1e3f282ee0c9a32044195b6f471.tar.bz2 aports-afd10bb14dc8c1e3f282ee0c9a32044195b6f471.tar.xz |
main/perl-class-load: upgrade to 0.25 and modernize
-rw-r--r-- | main/perl-class-load/APKBUILD | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/main/perl-class-load/APKBUILD b/main/perl-class-load/APKBUILD index 54dc9acc22..87c487f860 100644 --- a/main/perl-class-load/APKBUILD +++ b/main/perl-class-load/APKBUILD @@ -2,39 +2,45 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-class-load _pkgreal=Class-Load -pkgver=0.23 +pkgver=0.25 pkgrel=0 -pkgdesc="A working (require "Class::Name") and more" +pkgdesc="A working (require Class::Name) and more" url="http://search.cpan.org/dist/Class-Load/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-data-optlist perl-module-runtime perl-module-implementation perl-try-tiny perl-namespace-clean perl-package-stash" -cpanmakedepends=" perl-test-fatal perl-test-requires " +cpanmakedepends="perl-test-fatal perl-test-requires " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" +checkdepends="perl-test-needs" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + 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" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="080973026b82051117b6c18f5d77aaa9 Class-Load-0.23.tar.gz" -sha256sums="f2bca579e72ea96c6b1c5ebc86dfa1929062c412443277f0bc0437e50874b28f Class-Load-0.23.tar.gz" -sha512sums="c4e39a0b53dcb9e91c6ac160b15d253aa257fc327c2f4e333b8a3689a6c697412385d47d0a52e55a9420b8cc1a7f46d8d0c1ff54f13ae2a88e0f9df8935cffed Class-Load-0.23.tar.gz" +sha512sums="feacb4ae99358d3dc45b23b2d7cc814603e59a72424e7e0620d4939fa6d6206a1bb123c010b49013ce4764df11dc7c04fc1d7bd5783c61a391310bcb653e7ca4 Class-Load-0.25.tar.gz" |