From 63e22c9ea831c77df5048d18766f37412d84c230 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Sat, 27 Oct 2012 17:48:42 +0000 Subject: testing/perl-b-hooks-endofscope: new aport --- testing/perl-b-hooks-endofscope/APKBUILD | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 testing/perl-b-hooks-endofscope/APKBUILD (limited to 'testing/perl-b-hooks-endofscope/APKBUILD') diff --git a/testing/perl-b-hooks-endofscope/APKBUILD b/testing/perl-b-hooks-endofscope/APKBUILD new file mode 100644 index 0000000000..5886cd5155 --- /dev/null +++ b/testing/perl-b-hooks-endofscope/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=perl-b-hooks-endofscope +_pkgreal=B-Hooks-EndOfScope +pkgver=0.11 +pkgrel=0 +pkgdesc="Execute code after a scope finished compilation" +url="http://search.cpan.org/dist/B-Hooks-EndOfScope/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-variable-magic perl-sub-exporter" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/$_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="34aaf65de7886689fdbd398dbf6bc5a3 B-Hooks-EndOfScope-0.11.tar.gz" -- cgit v1.2.3