# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-specio
_pkgreal="Specio"
pkgver=0.36
pkgrel=0
pkgdesc="Specio perl module"
url="http://search.cpan.org/~drolsky/"
arch="noarch"
license="GPL or Artistic-2.0"
depends="perl-test-needs perl-devel-stacktrace perl-eval-closure perl-mro-compat
	perl-role-tiny perl-test-fatal perl-module-runtime"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	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="48727173345cb34c12317f5679c9301b207c3ffac73c2abb2437bf59606e811879a6ac2013c647e3d314de37c4b1ff0fbf256c9e931ddad2e61a6d100ac7afb8  Specio-0.36.tar.gz"
