aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-email-simple/APKBUILD
blob: 5bf88c0b751595c8efc101a5d43d58b6b08f19f1 (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-email-simple
_pkgreal=Email-Simple
pkgver=2.213
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Email-Simple/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-email-date-format"
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="7c4e62ed560cad53c620d26cddc81c5a  Email-Simple-2.213.tar.gz"
sha256sums="cdb97a9d647231cc0f7207a31ed6ec5ffde6b8ac6504910dc378bf619ed57cc5  Email-Simple-2.213.tar.gz"
sha512sums="78e026399ae0f2449c7c4a6b8c7839a60bc9385545dcf81318de0d7ae179bd8bd510a17138f4f8d6d38ecdd6bd6b973cac0a19674244b214ca218e248af0b49f  Email-Simple-2.213.tar.gz"