diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-07-15 14:16:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-07-16 10:57:33 +0000 |
commit | 100bcb7b28c065a45ab09e34026425ae1d453d40 (patch) | |
tree | ef634928c2d1a7311447b482f3a144ed0c933fe8 /main | |
parent | b5452acd31e7f9fd4d1050e1b27d8abb6eadcf28 (diff) | |
download | aports-100bcb7b28c065a45ab09e34026425ae1d453d40.tar.bz2 aports-100bcb7b28c065a45ab09e34026425ae1d453d40.tar.xz |
main/perl-class-mix: upgrade to 0.006 and modernize
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-class-mix/APKBUILD | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/main/perl-class-mix/APKBUILD b/main/perl-class-mix/APKBUILD index 467c9d63b6..18a826bf28 100644 --- a/main/perl-class-mix/APKBUILD +++ b/main/perl-class-mix/APKBUILD @@ -3,39 +3,42 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-class-mix _pkgreal=Class-Mix -pkgver=0.005 +pkgver=0.006 pkgrel=0 -pkgdesc="dynamic class mixing" +pkgdesc="Dynamic class mixing" url="http://search.cpan.org/dist/Class-Mix/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-params-classify" -cpanmakedepends=" " depends="$cpandepends" -makedepends="perl-dev perl-module-build $cpanmakedepends" +makedepends="perl-dev perl-module-build" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/$_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 Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + ./Build +} + +check() { + cd "$builddir" + ./Build test } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="7d6c4e70dea13678d845898a4a1565c0 Class-Mix-0.005.tar.gz" -sha256sums="054d0db62df90f22601f2a18fc84e9ca026d81601f5940b2fcc543e39d69b36b Class-Mix-0.005.tar.gz" -sha512sums="9486a8ec4f6b1a5483610cdac110eed219bb849e8895a350309167206f8caef4209abbbc340a467f4c3b2ca3afc6e2b49b66601110517b66684689f4d88d20c9 Class-Mix-0.005.tar.gz" +sha512sums="f1e52d189a57b4a6e4b7b093cd561881bcccec03dcf7286d69b592865343ab413ab35e42c14dd92ceb0089df1df33df4ff2a502026fde060ef246e77c8d21af1 Class-Mix-0.006.tar.gz" |