aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-http-message/APKBUILD
blob: e28e76053d5712ab1d6896366af49176503c5ab9 (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: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-http-message
_pkgreal=HTTP-Message
pkgver=6.08
pkgrel=0
pkgdesc="HTTP style messages"
url="http://search.cpan.org/dist/HTTP-Message/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-lwp-mediatypes perl-encode-locale perl-http-date perl-uri perl-io-html"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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="63d77640024896c72c59616c3fa9726e  HTTP-Message-6.08.tar.gz"
sha256sums="7e45b3013e2099a56b50f28bd880cafadfbc603025c0ebde761898bac3f14324  HTTP-Message-6.08.tar.gz"
sha512sums="4e1d319d66e1b24c3ee4cca39d456711386de5698b20e6c86e75c9e3538215ce456c32be56221afcb3c1177eb9bcaf60cd71b1ef5230c02b613837aaa2b9e656  HTTP-Message-6.08.tar.gz"