diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 00:46:51 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 00:46:51 +0000 |
commit | bfba03a35925d6767966ed1cbb49a65fbe67d4d5 (patch) | |
tree | e663537c4f22e237fb083f1a941fd9f7a6a916dd /testing/perl-bsd-resource/APKBUILD | |
parent | ce485c7bc305f1b5dceed9a7e2e0e42b25994066 (diff) | |
download | aports-bfba03a35925d6767966ed1cbb49a65fbe67d4d5.tar.bz2 aports-bfba03a35925d6767966ed1cbb49a65fbe67d4d5.tar.xz |
testing/perl-bsd-resource: upgrade to 1.2911 and modernize
Diffstat (limited to 'testing/perl-bsd-resource/APKBUILD')
-rw-r--r-- | testing/perl-bsd-resource/APKBUILD | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/testing/perl-bsd-resource/APKBUILD b/testing/perl-bsd-resource/APKBUILD index 1c75f53311..f87f1a8f9e 100644 --- a/testing/perl-bsd-resource/APKBUILD +++ b/testing/perl-bsd-resource/APKBUILD @@ -3,39 +3,44 @@ # Maintainer: Valery Kartel <valery.kartel@gmail.com> pkgname=perl-bsd-resource _pkgreal=BSD-Resource -pkgver=1.2909 -pkgrel=2 +pkgver=1.2911 +pkgrel=0 pkgdesc="Perl extension implements the BSD process resource limit functions" url="http://search.cpan.org/dist/BSD-Resource/" arch="all" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JH/JHI/$_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}'` - make && make test || return 1 + 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="3c6dd2fa953088aa87e263f40818d012 BSD-Resource-1.2909.tar.gz" -sha256sums="c47d460e2bd00d8d049f6ff4a0f1f61957e289e8de45af5fc79e851e2e855e06 BSD-Resource-1.2909.tar.gz" -sha512sums="5f489eaac5089e82081b7cf51d62638750e443751b49415407354da96b17771819b5e6e85529faa41ddd85743363750157943c7f7700276cce2bd40a429fa430 BSD-Resource-1.2909.tar.gz" +sha512sums="d0032d41c7c0468ed1c6d8f57b885f6cb97a5039d754c8cb60b2067daedaf53bd15fb6561a3d0f828df16dfa5417f663b8065ba65f4fea16dc9262728b3b6b85 BSD-Resource-1.2911.tar.gz" |