aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-http-message/APKBUILD
blob: 603106053fa56ab34c21c0bc29a219c9824e0145 (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.11
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="4ed7add10daea3ab30abfeab6d03872f  HTTP-Message-6.11.tar.gz"
sha256sums="e7b368077ae6a188d99920411d8f52a8e5acfb39574d4f5c24f46fd22533d81b  HTTP-Message-6.11.tar.gz"
sha512sums="6fc923b7dbdcce7269a03700a8776fe85522287f409fffac40936a77d951a70d957642eda8d2a0367af60d176c89654b3bb6249c23f458c0cd9d44031e6b6dc2  HTTP-Message-6.11.tar.gz"