blob: 560054894843168d3cf41f4661b4add739d20232 (
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
38
39
40
41
42
43
44
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-carp
_pkgreal=Carp
pkgver=1.38
pkgrel=1
pkgdesc="alternative warn and die for modules"
url="http://search.cpan.org/dist/Carp/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
doc() {
default_doc
replaces="perl-doc"
}
md5sums="93ac4c56312a9db6cef3b502a8169859 Carp-1.38.tar.gz"
sha256sums="a5a9ce3cbb959dfefa8c2dd16552567199b286d39b0e55053ca247c038977101 Carp-1.38.tar.gz"
sha512sums="da59e6df490599ee8a83b18c9767438d29b18e4fdd291f2a432be6e7610bf312ddb40f1f2d6892787720ae0133e2b50c47d1fde122094e69114165ebd5b98920 Carp-1.38.tar.gz"
|