diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:40:27 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:40:27 +0000 |
commit | 32c37a04a5044e5f96cf9a79e7c350bd37896c51 (patch) | |
tree | 5b32c3e257fbb943b786690424d4a25c34b639e0 /testing/perl-devel-globaldestruction | |
parent | 11d6042683314a758a5420b61dc1ff0f8549f219 (diff) | |
download | aports-32c37a04a5044e5f96cf9a79e7c350bd37896c51.tar.bz2 aports-32c37a04a5044e5f96cf9a79e7c350bd37896c51.tar.xz |
testing/perl-devel-globaldestruction: new aport
Diffstat (limited to 'testing/perl-devel-globaldestruction')
-rw-r--r-- | testing/perl-devel-globaldestruction/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-devel-globaldestruction/APKBUILD b/testing/perl-devel-globaldestruction/APKBUILD new file mode 100644 index 0000000000..ffa6280c4f --- /dev/null +++ b/testing/perl-devel-globaldestruction/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-devel-globaldestruction +_pkgreal=Devel-GlobalDestruction +pkgver=0.09 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/Devel-GlobalDestruction/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-sub-exporter-progressive" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/$_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="97e52fdf2de2df1843a5d3d9fce725df Devel-GlobalDestruction-0.09.tar.gz" |