# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-file-temp _pkgreal=File-Temp pkgver=0.2308 pkgrel=0 pkgdesc="Return name and handle of a temporary file safely" url="http://search.cpan.org/dist/File-Temp/" arch="noarch" license="GPL PerlArtistic" makedepends="perl-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { 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" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } doc() { default_doc replaces="perl-doc" } sha512sums="a85c3b5d7f39cfd64c370d72cead15f2d6d713b995ceca71e8af359cd686ae685e1ac6ca91e49165b7e867b1d635d1f124e788b92b01f2bda0b3970f2ad983db File-Temp-0.2308.tar.gz"