aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-sub-exporter/APKBUILD
blob: 5b47ba6d83d1a70d46f7f10ba2b833066764c13d (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-sub-exporter
_pkgreal=Sub-Exporter
pkgver=0.986
pkgrel=1
pkgdesc="a sophisticated exporter for custom-built routines"
url="http://search.cpan.org/dist/Sub-Exporter/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-data-optlist perl-sub-install perl-params-util"
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="bdfa41103f82ab8611af61fceed1271e  Sub-Exporter-0.986.tar.gz"
sha256sums="a7456c3216552a40f66426764d8c81815dc80bc53e3fdf67bf9234e7830b9661  Sub-Exporter-0.986.tar.gz"
sha512sums="ae2637c629229a3e0c248f968ee1f6a1126bb31cc38447218685fb5f09eaa6ea3904992e573b2a3211d4d689b0527f2d45a6b62ffedccb8cba39a98714c75bad  Sub-Exporter-0.986.tar.gz"