diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-05-04 12:13:31 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-05-04 12:13:31 +0000 |
commit | bcd71172f9ffea3c282de2e8638e0107fe28c636 (patch) | |
tree | 3f274a21a748172b82d06072f6bc70465b3657b9 /testing/perl-autobox | |
parent | d9ef8ec729115d79f860364e2e29381d96ebcd51 (diff) | |
download | aports-bcd71172f9ffea3c282de2e8638e0107fe28c636.tar.bz2 aports-bcd71172f9ffea3c282de2e8638e0107fe28c636.tar.xz |
testing/perl-autobox: upgrade to 2.85, add check(), modernize APKBUILD
Diffstat (limited to 'testing/perl-autobox')
-rw-r--r-- | testing/perl-autobox/APKBUILD | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/testing/perl-autobox/APKBUILD b/testing/perl-autobox/APKBUILD index e51ec7846f..639f30214d 100644 --- a/testing/perl-autobox/APKBUILD +++ b/testing/perl-autobox/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-autobox _pkgreal=autobox -pkgver=2.84 +pkgver=2.85 pkgrel=0 pkgdesc="call methods on native types" url="http://search.cpan.org/dist/autobox/" @@ -15,27 +15,29 @@ depends="$cpandepends" makedepends="perl-dev perl-test-pod perl-scope-guard $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/C/CH/CHOCOLATE/$_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" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="d2c2945a9605058366a5173975bab4db autobox-2.84.tar.gz" -sha256sums="98dd2754f226684a72ccba3a95956b7eaff2871568e4dd9746e6fb6daae0b96b autobox-2.84.tar.gz" -sha512sums="d2115d04080f146e95e8cb09fc77e3fe7dce53b75d4940633eaf92a88ca61b2d55b9dae67f7934d918c6befaf43743c17be183ac2423a19950548b076c0cfccf autobox-2.84.tar.gz" +sha512sums="2f9c0ef556655eb19a2e50aa2ec47769ef2fd7bb15806a7f22320be9d79178811c418dbe58cf792fdc48dc3e7b80b70c1882956559373cc6eb152c0b94d52081 autobox-2.85.tar.gz" |