diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-06-16 08:20:32 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-06-16 08:32:52 +0000 |
commit | 624caf9cec6811d88ded2bef2e6e4873ec247d23 (patch) | |
tree | 344e569794efa6df9628bb3526067eed1ad41542 /community/perl-tie-cycle | |
parent | 3e0281b0d35af9797a45c23d3ff3150114b1d863 (diff) | |
download | aports-624caf9cec6811d88ded2bef2e6e4873ec247d23.tar.bz2 aports-624caf9cec6811d88ded2bef2e6e4873ec247d23.tar.xz |
community/perl-tie-cycle: upgrade to 1.224, modernize APKBUILD, added check() function
Diffstat (limited to 'community/perl-tie-cycle')
-rw-r--r-- | community/perl-tie-cycle/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/community/perl-tie-cycle/APKBUILD b/community/perl-tie-cycle/APKBUILD index fa127e2e46..78fd7cf082 100644 --- a/community/perl-tie-cycle/APKBUILD +++ b/community/perl-tie-cycle/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-tie-cycle _pkgreal=Tie-Cycle -pkgver=1.222 +pkgver=1.224 pkgrel=0 pkgdesc="Cycle through a list of values via a scalar." url="http://search.cpan.org/dist/Tie-Cycle/" @@ -17,8 +17,13 @@ subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" +check() { + cd "$builddir" + make test +} + prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') @@ -28,15 +33,13 @@ prepare() { build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - make && make test + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="0f2d1990f29cbd610d0fa4b4f4086fbe Tie-Cycle-1.222.tar.gz" -sha256sums="f1311214cc4b2a8c7cae0dd50e3e9916a1b47c4c04b279537aa80fa1df527ce6 Tie-Cycle-1.222.tar.gz" -sha512sums="3d26c688a3e0d5ec74a8fc3e34fd39c9eef5b3e3a5cfe66bf0cbb9aba546df4193fbb7c7d40d2d17b7a757ffc4e105a238b3a2b3e7f8ac56ed21d39086b864b4 Tie-Cycle-1.222.tar.gz" +sha512sums="291f012e85108809d75302bb6554beffdfbf3ec3153acef667d0dfa34a0309190f9211a19728620c1ff6bedfeff5fd9209d2d4589f13fba144d0c0fade53f9b6 Tie-Cycle-1.224.tar.gz" |