diff options
-rw-r--r-- | main/perl-sub-info/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/main/perl-sub-info/APKBUILD b/main/perl-sub-info/APKBUILD new file mode 100644 index 0000000000..a2e6a7d3e3 --- /dev/null +++ b/main/perl-sub-info/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=perl-sub-info +_pkgreal=Sub-Info +pkgver=0.002 +pkgrel=0 +pkgdesc="Tool for inspecting subroutines." +url="http://search.cpan.org/dist/Sub-Info/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-importer perl-test-simple" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="e3ad2c8b270a44f9de2d5b71845a4a21f363a234edf2ddb9942c2fb2e4d765eedff3653a047f025b9d1dfaeff32ddd58aeff7f81fa42e6f4b57f5ca6311519b3 Sub-Info-0.002.tar.gz" |