blob: 94d582776e9eb69e2918619e761f46229659eea6 (
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
45
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-exporter
_pkgreal=Exporter
pkgver=5.72
pkgrel=1
pkgdesc="Implements default import method for modules"
url="http://search.cpan.org/dist/Exporter/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_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="096f0692cbe46a3407a534a0d10970ca Exporter-5.72.tar.gz"
sha256sums="cd13b7a0e91e8505a0ce4b25f40fab2c92bb28a99ef0d03da1001d95a32f0291 Exporter-5.72.tar.gz"
sha512sums="ba3c3e4703c993a3bd9a73c7afd3f9ee38bf6997800fe0804c0ed645d15996a7d8fb3f46a15484c75272586bbf2cb879e2a036bf73e98bc01be5c5a23e0bf080 Exporter-5.72.tar.gz"
|