blob: b8fb841d797a70354fd11c0b8d5ecb7f7615f06b (
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
42
43
44
45
46
47
|
# 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=2
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://cpan.metacpan.org/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
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
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"
|