diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-01-18 14:54:02 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-08 08:14:10 +0000 |
commit | 9530f3202f10ad77c7f2325306bda15b53e382f1 (patch) | |
tree | d6a85a4d85b1b295eed520465d6810465c51df59 /main/perl-mailtools | |
parent | 5785209e08cf357666939d626196ea50c8f92445 (diff) | |
download | aports-9530f3202f10ad77c7f2325306bda15b53e382f1.tar.bz2 aports-9530f3202f10ad77c7f2325306bda15b53e382f1.tar.xz |
main/perl-mailtools: moved from testing
Diffstat (limited to 'main/perl-mailtools')
-rw-r--r-- | main/perl-mailtools/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/perl-mailtools/APKBUILD b/main/perl-mailtools/APKBUILD new file mode 100644 index 0000000000..ca8fe8a247 --- /dev/null +++ b/main/perl-mailtools/APKBUILD @@ -0,0 +1,43 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-mailtools +_pkgreal=MailTools +pkgver=2.18 +pkgrel=1 +pkgdesc="Various e-mail related modules" +url="http://search.cpan.org/dist/MailTools/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-timedate" +cpanmakedepends="" +replaces=perl-mail-tools +provides="perl-mail-tools=$pkgver" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/$_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="972468ab5207b90398d77bed4ffc361d MailTools-2.18.tar.gz" +sha256sums="dfee9e770257371112f20d978e637759e81bc4f19e97b083585c71ecab37b527 MailTools-2.18.tar.gz" +sha512sums="2bd3f16bedf38c067f5fb7e719d0750ff96a8893e60abbc50568e0bc135a0acb4a8f6a18474e6884ab5b916d4959dbe4ba6a5b271e446bd68073b91dbc1ca7c2 MailTools-2.18.tar.gz" |