aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-exporter/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-06-10 08:20:12 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-06-10 08:20:12 +0000
commit9125e2c45ff57e7e4da9bcd63f5f2507eec87349 (patch)
tree489c966cea3449d414c33b2f26852a3920193efd /main/perl-exporter/APKBUILD
parent2c0d7642a92802e47a6aacb6f5af970897e3c96f (diff)
downloadaports-9125e2c45ff57e7e4da9bcd63f5f2507eec87349.tar.bz2
aports-9125e2c45ff57e7e4da9bcd63f5f2507eec87349.tar.xz
main/perl-exporter: new aport
Diffstat (limited to 'main/perl-exporter/APKBUILD')
-rw-r--r--main/perl-exporter/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-exporter/APKBUILD b/main/perl-exporter/APKBUILD
new file mode 100644
index 0000000000..717cb13528
--- /dev/null
+++ b/main/perl-exporter/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-exporter
+_pkgreal=Exporter
+pkgver=5.72
+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/$_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="096f0692cbe46a3407a534a0d10970ca Exporter-5.72.tar.gz"
+sha256sums="cd13b7a0e91e8505a0ce4b25f40fab2c92bb28a99ef0d03da1001d95a32f0291 Exporter-5.72.tar.gz"
+sha512sums="ba3c3e4703c993a3bd9a73c7afd3f9ee38bf6997800fe0804c0ed645d15996a7d8fb3f46a15484c75272586bbf2cb879e2a036bf73e98bc01be5c5a23e0bf080 Exporter-5.72.tar.gz"