blob: 0b6f2eff322736e18da226b0b5634ed91a3a3288 (
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
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-carp
_pkgreal=Carp
pkgver=1.36
pkgrel=0
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
}
md5sums="3f5dcd7cc263bd01617886174ceff5a4 Carp-1.36.tar.gz"
sha256sums="dcc789935126461c80df0653f98c1d8d0b936dcc3d04174287cb02767eca123c Carp-1.36.tar.gz"
sha512sums="90616169954e3740abab3207405cd08cc1d4bc70de84e0b12d9657fe6a8ca8c555f8df3e6d70e57e5bedb7aa3b519e79032548ad3b958de9a0f9bb2a376a5aac Carp-1.36.tar.gz"
|