diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:48:42 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:48:42 +0000 |
commit | 63e22c9ea831c77df5048d18766f37412d84c230 (patch) | |
tree | 2a4c0a47f4e953bc25055ae8e421de29455189a2 /testing/perl-b-hooks-endofscope/APKBUILD | |
parent | 713a3ffb4e8046be3c1af791978cfe2627f1f7f6 (diff) | |
download | aports-63e22c9ea831c77df5048d18766f37412d84c230.tar.bz2 aports-63e22c9ea831c77df5048d18766f37412d84c230.tar.xz |
testing/perl-b-hooks-endofscope: new aport
Diffstat (limited to 'testing/perl-b-hooks-endofscope/APKBUILD')
-rw-r--r-- | testing/perl-b-hooks-endofscope/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
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 <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +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" |