aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-email-mime-encodings/APKBUILD
blob: 5b0e7787dd846a5d8e4618e99ff46d8e960f25fc (plain) (blame)
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-mime-encodings
_pkgreal=Email-MIME-Encodings
pkgver=1.315
pkgrel=0
pkgdesc="A unified interface to MIME encoding and decoding"
url="http://search.cpan.org/dist/Email-MIME-Encodings/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="  perl-capture-tiny "
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="0fbe906d7918430750b1ba766cf95151  Email-MIME-Encodings-1.315.tar.gz"
sha256sums="4c71045507b31ec853dd60152b40e33ba3741779c0f49bb143b50cf8d243ab5c  Email-MIME-Encodings-1.315.tar.gz"
sha512sums="4cd787e099617b70963c8ef6372e2a16038c61170fdd343aad88a024ecd15c789fd2c8cc19830c3518b6648e428301eed1ae20f496fa97afbdd8bb7f3ae432aa  Email-MIME-Encodings-1.315.tar.gz"