summaryrefslogtreecommitdiffstats
path: root/main/perl-carp-clan/APKBUILD
blob: 4937dd3aa59d930485b0d7fb073fef17e54fa138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=perl-carp-clan
_realname=Carp-Clan
pkgver=6.04
pkgrel=0
pkgdesc="Perl - Report errors from perspective of caller of a 'clan' of modules"
url="http://search.cpan.org/~stbey/$_realname-$pkgver/"
arch="x86 x86_64"
license="Artistic GPL"
depends="perl perl-test-exception"
makedepends="perl-dev"
install=
#subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/$_realname-$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="b6316bc51bb530d994f2784615939fb2  Carp-Clan-6.04.tar.gz"