aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-mailtools/APKBUILD
blob: 676e5cbf67f9ecab19c65e0db9ea53f3ef472b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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.17
pkgrel=0
pkgdesc="Various e-mail related modules"
url="http://search.cpan.org/dist/MailTools/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-timedate"
cpanmakedepends="   "
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="c31ebb66678211e4fc2931d15e4be7e2  MailTools-2.17.tar.gz"
sha256sums="24e3b50fbaca2b9c561970caef02446c46ead561cd43fe2e0dd5fe4a808f13cf  MailTools-2.17.tar.gz"
sha512sums="91421d5068774436f43d34a4cf5d84bd91c27bd30a6b52dd4a6c5ed341c9f00c6b7d9d2ebf535673a4750c3cc55b2767e639eb9d11efc8259221b8be78fc499c  MailTools-2.17.tar.gz"