diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-05 00:29:02 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-05 00:29:02 +0000 |
commit | d80f008edafd656668331228c6f237b242a95b12 (patch) | |
tree | 09fcfa0255f48048adf9c45f70d2ef199c369d6f | |
parent | b72814fde7ac89805805563385e2bbc84510feb6 (diff) | |
download | aports-d80f008edafd656668331228c6f237b242a95b12.tar.bz2 aports-d80f008edafd656668331228c6f237b242a95b12.tar.xz |
testing/perl-throwable: modernize and add check
-rw-r--r-- | testing/perl-throwable/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/testing/perl-throwable/APKBUILD b/testing/perl-throwable/APKBUILD index e66bae695e..bf7bb69412 100644 --- a/testing/perl-throwable/APKBUILD +++ b/testing/perl-throwable/APKBUILD @@ -4,38 +4,43 @@ pkgname=perl-throwable _pkgreal=Throwable pkgver=0.200013 -pkgrel=0 -pkgdesc="a role for classes that can be thrown" +pkgrel=1 +pkgdesc="A role for classes that can be thrown" url="http://search.cpan.org/dist/Throwable/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-moo perl-class-load perl-moox-types-mooselike perl-devel-stacktrace" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_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}'` PERL_MM_USE_DEFAULT=1 make } +check() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 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="92d4934f601c2d291a65b0bf2ab08dd3 Throwable-0.200013.tar.gz" -sha256sums="9987d0deb5bddd352a6330cefbe932f882e36dd8c8a4564bcfd372dc396b8fa0 Throwable-0.200013.tar.gz" sha512sums="81ce73709c7c6a0160da42b00ce06ddf4cce79a6801df7aa90ddcce67efed6ace17b06171ac42b2737a98515c17ab46b5a3b7fd9e5bd3079b109a977dc6c0963 Throwable-0.200013.tar.gz" |