diff options
Diffstat (limited to 'testing/perl-autobox/APKBUILD')
-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" |