diff options
-rw-r--r-- | main/perl-exporter-tiny/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-exporter-tiny/APKBUILD b/main/perl-exporter-tiny/APKBUILD new file mode 100644 index 0000000000..bd2782476a --- /dev/null +++ b/main/perl-exporter-tiny/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=perl-exporter-tiny +_pkgreal=Exporter-Tiny +pkgver=0.042 +pkgrel=0 +pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies" +url="http://search.cpan.org/dist/Exporter-Tiny/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" perl-test-warnings perl-test-fatal" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_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="77ba432037f35bc9b84b717639075fc6 Exporter-Tiny-0.042.tar.gz" +sha256sums="8f1622c5ebbfbcd519ead81df7917e48cb16cc527b1c46737b0459c3908a023f Exporter-Tiny-0.042.tar.gz" +sha512sums="b69b722842b4a907fa434a1a798df6f983bae74d7b82e925a1db684cb166f2ef02a72cce176173af035321dc27ad35b49e1fb1ee57c0e2ca6596d84da140c06f Exporter-Tiny-0.042.tar.gz" |