# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
setvar pkgname = 'perl-http-message'
setvar _pkgreal = 'HTTP-Message'
setvar pkgver = '6.11'
setvar pkgrel = '1'
setvar pkgdesc = ""HTTP style messages""
setvar url = ""http://search.cpan.org/dist/HTTP-Message/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = ""perl-lwp-mediatypes perl-encode-locale perl-http-date perl-uri perl-io-html""
setvar cpanmakedepends = ""   ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz""

setvar builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	cd $builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})
	make
}

proc check {
	cd $builddir
	make test
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar sha512sums = ""6fc923b7dbdcce7269a03700a8776fe85522287f409fffac40936a77d951a70d957642eda8d2a0367af60d176c89654b3bb6249c23f458c0cd9d44031e6b6dc2  HTTP-Message-6.11.tar.gz""