diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 01:16:36 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 01:39:35 +0000 |
commit | b1274f164d3742fc5a47f4ab85a91baef72338ec (patch) | |
tree | 7095e084822242b5cff89ac35bb3dee624642067 /community/perl-test-mock-guard/APKBUILD | |
parent | 4c6f8e1fdf89d2899b81dd6a680a65e89e20b7a9 (diff) | |
download | aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.bz2 aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.xz |
community/perl-[t-y]: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
Diffstat (limited to 'community/perl-test-mock-guard/APKBUILD')
-rw-r--r-- | community/perl-test-mock-guard/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/community/perl-test-mock-guard/APKBUILD b/community/perl-test-mock-guard/APKBUILD index 9ff073a61e..c105e3e267 100644 --- a/community/perl-test-mock-guard/APKBUILD +++ b/community/perl-test-mock-guard/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-test-mock-guard _pkgname=Test-Mock-Guard pkgver=0.10 -pkgrel=0 +pkgrel=1 pkgdesc="Simple mock test library using RAII" url="https://github.com/zigorou/p5-test-mock-guard" arch="noarch" @@ -14,24 +14,27 @@ source="http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/$_pkgname-$pkgver.ta builddir="$srcdir/$_pkgname-$pkgver" prepare() { - default_prepare || return 1 + 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" 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 + ./Build install --destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="b2866485cc29c787f85793279e2f2360 Test-Mock-Guard-0.10.tar.gz" -sha256sums="7f228a63f8d6ceb92aa784080a13e85073121b2835eca06d794f9709950dbd3d Test-Mock-Guard-0.10.tar.gz" sha512sums="17a8cbfea9e33a625ad5a33b40b5a799715d59b57eb4030a9d694fdd1e7361667f326888577291f0807852b86c04b97384ab8a48d95eb92158d35e14131068cc Test-Mock-Guard-0.10.tar.gz" |