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-sub-exporter | |
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-sub-exporter')
-rw-r--r-- | community/perl-sub-exporter/APKBUILD | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/community/perl-sub-exporter/APKBUILD b/community/perl-sub-exporter/APKBUILD index ac96bddab1..771fd94cba 100644 --- a/community/perl-sub-exporter/APKBUILD +++ b/community/perl-sub-exporter/APKBUILD @@ -4,38 +4,41 @@ pkgname=perl-sub-exporter _pkgreal=Sub-Exporter pkgver=0.987 -pkgrel=0 +pkgrel=1 pkgdesc="a sophisticated exporter for custom-built routines" url="http://search.cpan.org/dist/Sub-Exporter/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-data-optlist perl-sub-install perl-params-util perl-test-pod" -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" + 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}'` - make && make test + make +} + +check() { + cd "$builddir" + 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="5332d269a7ba387773fcd140b72a0ed2 Sub-Exporter-0.987.tar.gz" -sha256sums="543cb2e803ab913d44272c7da6a70bb62c19e467f3b12aaac4c9523259b083d6 Sub-Exporter-0.987.tar.gz" sha512sums="6b682d27a0df8ce971ea48aeca5162e1c70929c51cf27119b30361477876b0b86ecb15ab13a6c3cbe5bb85be9e600589fb9e3c9c4e94bad3fc05b675d293adad Sub-Exporter-0.987.tar.gz" |