aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-email-mime-contenttype/APKBUILD
blob: c76c874f3a228384baf0dbc08967bdbd0f3c4c11 (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-mime-contenttype
_pkgreal=Email-MIME-ContentType
pkgver=1.018
pkgrel=0
pkgdesc="Parse a MIME Content-Type Header"
url="http://search.cpan.org/dist/Email-MIME-ContentType/"
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="d9cfad14b86d2617e379fc2441fdec17  Email-MIME-ContentType-1.018.tar.gz"
sha256sums="7508cd1227b8f150a403ca49658cb4a0892836dd8f01ff95f049957b2abf10f9  Email-MIME-ContentType-1.018.tar.gz"
sha512sums="0b3f9af2521cfd2aaac602f8e67f1ab12b7f9aa711d16ef73f95cb197ceae96c3f72328a21ba7c6a5c37a87822d774b0dfef090bc6b371b11e0dd866c61b197b  Email-MIME-ContentType-1.018.tar.gz"