# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer:
setvar pkgname = 'perl-stream-buffered'
setvar _pkgreal = 'Stream-Buffered'
setvar pkgver = '0.02'
setvar pkgrel = '0'
setvar pkgdesc = ""temporary buffer to save bytes""
setvar url = ""http://search.cpan.org/dist/Stream-Buffered/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = """"
setvar cpanmakedepends = ""   ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/D/DO/DOY/$_pkgreal-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	cd $_builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $_builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})
	make && make test
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar sha512sums = ""44b374982a6f55ca8b08fa3029bb6bf28d1b892cd846f77da5c8bbbf1d9d1957d71681eb62b12874cf6bae94d5ebed92954ac2f8a5ce0aaacc2e833f4094bd16  Stream-Buffered-0.02.tar.gz""