# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-text-vfile-asdata
_pkgreal=Text-vFile-asData
pkgver=0.08
pkgrel=0
pkgdesc="parse vFile formatted files into data structures"
url="http://search.cpan.org/dist/Text-vFile-asData/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-class-accessor-chained"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

md5sums="39fad8c1ca12d44a1bde955f74b3d470  Text-vFile-asData-0.08.tar.gz"
sha256sums="b291ab5e0f987c5172560a692234711a75e4596d83475f72d01278369532f82a  Text-vFile-asData-0.08.tar.gz"
sha512sums="04ec51061a7dc1c19d00edfcb3740deae7c70372e8d5eba868e2e62326f0084fbb3f8237f7cffaf1a5d2f49a5ceac7dcc7ea391e1effe78923b6b0e523b2728b  Text-vFile-asData-0.08.tar.gz"
