diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:56:33 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:56:33 +0000 |
commit | f6c9d149353e4f0254a7a78c8ea999472c35746b (patch) | |
tree | 198b55c1608001fc0c0c464941b9ceeade0519a9 /testing/perl-email-sender | |
parent | cec589c983da98f39b4ded4290f2b6885984d8f6 (diff) | |
download | aports-f6c9d149353e4f0254a7a78c8ea999472c35746b.tar.bz2 aports-f6c9d149353e4f0254a7a78c8ea999472c35746b.tar.xz |
testing/perl-email-sender: new aport
Diffstat (limited to 'testing/perl-email-sender')
-rw-r--r-- | testing/perl-email-sender/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-email-sender/APKBUILD b/testing/perl-email-sender/APKBUILD new file mode 100644 index 0000000000..ac0d8fa6b4 --- /dev/null +++ b/testing/perl-email-sender/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-email-sender +_pkgreal=Email-Sender +pkgver=0.120002 +pkgrel=0 +pkgdesc="a library for sending email" +url="http://search.cpan.org/dist/Email-Sender/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-list-moreutils perl-capture-tiny perl-moose perl-email-address perl-email-simple perl-throwable perl-email-abstract perl-try-tiny" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_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="8671410f17dc316d925bbcdeb97af9c6 Email-Sender-0.120002.tar.gz" |