aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-exporter/APKBUILD
blob: d7e100f712538a8d91a774baafd3a42f93388caa (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
46
47
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-exporter
_pkgname=Exporter
pkgver=5.73
pkgrel=0
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/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$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
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

doc() {
	default_doc
	replaces="perl-doc"
}

sha512sums="da2cc1d7670f4407210b94e53bbbe632c43a4c95267e5c8bdcc7976d85e2e90e9da948d2e063d3137ab9924959bf615092c68b0606dc9f8906ceadca0bb44aee  Exporter-5.73.tar.gz"