diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 13:07:06 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 13:31:30 +0000 |
commit | 3ce302210e5b0a911d9657215d691b8fe4e5b9b5 (patch) | |
tree | 778ae8d17fb65f669c60b8d5eeeb3aa43bb87d58 /community/perl-spiffy/APKBUILD | |
parent | a439676586c0e22b38559c0cfb70d81123930b3a (diff) | |
download | aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.bz2 aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.xz |
community/perl-[n-s]*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
- add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-spiffy/APKBUILD')
-rw-r--r-- | community/perl-spiffy/APKBUILD | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/community/perl-spiffy/APKBUILD b/community/perl-spiffy/APKBUILD index 7484c98bb5..73a4403d11 100644 --- a/community/perl-spiffy/APKBUILD +++ b/community/perl-spiffy/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-spiffy _pkgreal=Spiffy pkgver=0.46 -pkgrel=0 +pkgrel=1 pkgdesc="Spiffy Perl Interface Framework For You" url="http://search.cpan.org/dist/Spiffy/" arch="noarch" @@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_pkgreal-$pkgver.tar.g builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') @@ -28,7 +28,12 @@ prepare() { build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { @@ -37,6 +42,4 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="2ec7007c111a6bc2775bb7c57673a24b Spiffy-0.46.tar.gz" -sha256sums="8f58620a8420255c49b6c43c5ff5802bd25e4f09240c51e5bf2b022833d41da3 Spiffy-0.46.tar.gz" sha512sums="a1fb02bae4a6edab564c05af2f1b2caaf996d433ec054e07e75a53e88216c46cf14db87a2abdfc9c74f73791267f69129a86bfdaa77492f941104143ca7b8154 Spiffy-0.46.tar.gz" |