# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=perl-carp-clan
_realname=Carp-Clan
pkgver=6.06
pkgrel=1
pkgdesc="Perl - Report errors from perspective of caller of a 'clan' of modules"
url="http://search.cpan.org/~stbey/$_realname-$pkgver/"
arch="noarch"
license="Artistic GPL"
depends="perl perl-test-exception"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KE/KENTNL/Carp-Clan-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
	make test || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="c562a35c48f43665fab735cdc7fe3cb2  Carp-Clan-6.06.tar.gz"
sha256sums="ea4ac8f611354756d43cb369880032901e9cc4cc7e0bebb7b647186dac00c9d4  Carp-Clan-6.06.tar.gz"
sha512sums="a3dede626814a71a5f99b25a5b01133ecd13037fd1fbbaacb04852962c5d23bb77c1cb70f417879ec173db0215904adb59136dd30de6166994aa9aa7b28ca08f  Carp-Clan-6.06.tar.gz"
