aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-libwww/APKBUILD
blob: cf28c1892703f1233662d914b7ca1a183e34662b (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
42
43
44
45
46
47
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-libwww
_realname=libwww-perl
pkgver=6.34
pkgrel=0
pkgdesc="Perl module - World Wide Web library"
url="http://search.cpan.org/~mschilli"
arch="noarch"
license="GPL PerlArtistic"
depends="perl-http-date perl-http-cookies perl-net-http perl-http-daemon
	perl-html-parser perl-file-listing perl-www-robotrules
	perl-http-negotiate perl-uri perl-http-message
	perl-lwp-mediatypes perl-encode-locale perl-try-tiny"
makedepends="perl-dev perl-test-fatal perl-test-requiresinternet"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/libwww-perl-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

prepare() {
	default_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
}

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

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

sha512sums="e51c91b2a67846a14b8dc6fe2cf00ee3b8c7dd3be7cf21e0a90c9fff381c40456f86529f317989cb3b3f3942f04514f0396e0044239b3b8a0239aafc8a99dc36  libwww-perl-6.34.tar.gz"