# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-autobox _pkgreal=autobox pkgver=2.86 pkgrel=0 pkgdesc="call methods on native types" url="http://search.cpan.org/dist/autobox/" arch="all" license="GPL PerlArtistic" cpandepends="perl-scope-guard" cpanmakedepends="perl-ipc-system-simple" 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" prepare() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="ab4d41cfddb10a03e6bdb47a81cbf2a41f5c2f518dd674e9af17a3127589d8b4d84d50f4293291517fb24b9c1b022dfcecafd7acf5d0d1e693528353ccc9c186 autobox-2.86.tar.gz"