aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-carp/APKBUILD
blob: f5dae57a9cb12c6b91f26d76fd331953cd72979e (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
# Contributor: 
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-carp
_pkgreal=Carp
pkgver=1.37.01
_pkgver="${pkgver%.*}_${pkgver##*.}"
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="2c43d02407bf89a32f3f8f1400196ad9  Carp-1.37_01.tar.gz"
sha256sums="dae3dfb4e8db118a0cc94e7b41c5a874a3eedee06d4346214e1de442baffab9f  Carp-1.37_01.tar.gz"
sha512sums="021d4b28e7eabf7885c2b40830fb0b92bc57b51e0e031935d8e4e73dbca2459687429436524c0a9191a8fc151d8e7c3f87ea4ae8e0709d3a1696def5b0bbd8f4  Carp-1.37_01.tar.gz"